Gå til innhold

Macafé — Uformell chitchat rundt Mac og Apple.


Roberto

Anbefalte innlegg

Skrevet
ah MacBooken min er bare en programmeres beste venn <3 Med vmware fusion har ikke web programmering vært enklere! Skrive kode i osx, legge det rett over på LAMP serveren som kjører virtuelt i fusion.. Vil jeg skrive litt Visual Basic? Boot opp XP maskinen og skriv i vei ;) Vil jeg prøve ut exchange 2007? Boot opp den virtuelle server 2008!

Alt på en maskin!

Touché? :p

 

Videoannonse
Annonse
Skrevet
Klikk syns jeg er utrolig bra.

Klikk er ikke mye bra.

Det er vel egentlig en tro kopi av Diggnation med Kevin Rose og Alex Albrecht, og det er lavere kvalitet på innholdet, de er ikke morsomme og det er.. ja, lagd av ITavisen.

Skrevet

Holder på å installere django på OSX Leopard.

 

Har klart å installere django (runserver fungerer fint) . Har også installert PostgreSQL, men jeg klarer ikke å få installert psycopg2.

 

Har tatt en svn co http://www.initd.org/svn/psycopg/psycopg2/tags/2_0_BETA_8/

 

Så inne i 2_0_BETA_8 kjørte jeg sudo python setup.py build

 

Slik så det ut:

Klikk for å se/fjerne innholdet nedenfor

Password:

running build

running build_py

creating build

creating build/lib.macosx-10.5-i386-2.5

creating build/lib.macosx-10.5-i386-2.5/psycopg2

copying lib/__init__.py -> build/lib.macosx-10.5-i386-2.5/psycopg2

copying lib/extensions.py -> build/lib.macosx-10.5-i386-2.5/psycopg2

copying lib/extras.py -> build/lib.macosx-10.5-i386-2.5/psycopg2

copying lib/pool.py -> build/lib.macosx-10.5-i386-2.5/psycopg2

copying lib/psycopg1.py -> build/lib.macosx-10.5-i386-2.5/psycopg2

copying lib/tz.py -> build/lib.macosx-10.5-i386-2.5/psycopg2

running build_ext

Warning: /bin/sh: pg_config: command not found

building 'psycopg2._psycopg' extension

creating build/temp.macosx-10.5-i386-2.5

creating build/temp.macosx-10.5-i386-2.5/psycopg

gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0b8 (dec dt ext pq3)" -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_DISPLAY_SIZE=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I. -c psycopg/psycopgmodule.c -o build/temp.macosx-10.5-i386-2.5/psycopg/psycopgmodule.o

In file included from psycopg/psycopgmodule.c:28:

./psycopg/connection.h:26:22: error: libpq-fe.h: No such file or directory

In file included from psycopg/psycopgmodule.c:28:

./psycopg/connection.h:26:22: error: libpq-fe.h: No such file or directory

In file included from psycopg/psycopgmodule.c:28:

./psycopg/connection.h:55: error: syntax error before 'PGconn'

./psycopg/connection.h:55: warning: no semicolon at end of struct or union

./psycopg/connection.h:78: error: syntax error before '}' token

./psycopg/connection.h:78: warning: type defaults to 'int' in declaration of 'connectionObject'

./psycopg/connection.h:78: warning: data definition has no type or storage class

./psycopg/connection.h:81: error: syntax error before '*' token

In file included from psycopg/psycopgmodule.c:28:

./psycopg/connection.h:55: error: syntax error before 'PGconn'

./psycopg/connection.h:81: warning: function declaration isn't a prototype

./psycopg/connection.h:55: warning: no semicolon at end of struct or union

./psycopg/connection.h:82: error: syntax error before '*' token

./psycopg/connection.h:82: warning: function declaration isn't a prototype

./psycopg/connection.h:83: error: syntax error before '*' token

./psycopg/connection.h:83: warning: function declaration isn't a prototype

./psycopg/connection.h:78: error: syntax error before '}' token./psycopg/connection.h:84: error: syntax error before '*' token

 

./psycopg/connection.h:78: warning: type defaults to 'int' in declaration of 'connectionObject'./psycopg/connection.h:84: warning: function declaration isn't a prototype

 

./psycopg/connection.h:78: warning: data definition has no type or storage class

./psycopg/connection.h:85: error: syntax error before '*' token

./psycopg/connection.h:81: error: syntax error before '*' token

./psycopg/connection.h:85: warning: function declaration isn't a prototype

./psycopg/connection.h:81: warning: function declaration isn't a prototype

./psycopg/connection.h:86: error: syntax error before '*' token

./psycopg/connection.h:82: error: syntax error before '*' token

./psycopg/connection.h:86: warning: function declaration isn't a prototype./psycopg/connection.h:82: warning: function declaration isn't a prototype

 

./psycopg/connection.h:83: error: syntax error before '*' token

./psycopg/connection.h:83: warning: function declaration isn't a prototype

./psycopg/connection.h:84: error: syntax error before '*' token

./psycopg/connection.h:84: warning: function declaration isn't a prototype

./psycopg/connection.h:85: error: syntax error before '*' token

In file included from psycopg/psycopgmodule.c:29:

./psycopg/cursor.h:39: error: syntax error before 'connectionObject'./psycopg/connection.h:85: warning: function declaration isn't a prototype

 

./psycopg/cursor.h:39: warning: no semicolon at end of struct or union

./psycopg/connection.h:86: error: syntax error before '*' token

./psycopg/cursor.h:41: error: syntax error before ':' token./psycopg/connection.h:86: warning: function declaration isn't a prototype

 

./psycopg/cursor.h:42: error: syntax error before ':' token

./psycopg/cursor.h:43: error: syntax error before ':' token

./psycopg/cursor.h:55: error: syntax error before '*' token

./psycopg/cursor.h:55: warning: type defaults to 'int' in declaration of 'pgres'

./psycopg/cursor.h:55: warning: data definition has no type or storage class

./psycopg/cursor.h:57: error: syntax error before 'lastoid'

In file included from psycopg/psycopgmodule.c:29:

./psycopg/cursor.h:39: error: syntax error before 'connectionObject'

./psycopg/cursor.h:57: warning: type defaults to 'int' in declaration of 'lastoid'./psycopg/cursor.h:39: warning: no semicolon at end of struct or union

 

./psycopg/cursor.h:57: warning: data definition has no type or storage class

./psycopg/cursor.h:41: error: syntax error before ':' token

./psycopg/cursor.h:42: error: syntax error before ':' token

./psycopg/cursor.h:43: error: syntax error before ':' token./psycopg/cursor.h:78: error: syntax error before '}' token

 

./psycopg/cursor.h:78: warning: type defaults to 'int' in declaration of 'cursorObject'

./psycopg/cursor.h:78: warning: data definition has no type or storage class

./psycopg/cursor.h:55: error: syntax error before '*' token./psycopg/cursor.h:81: error: syntax error before '*' token

 

./psycopg/cursor.h:55: warning: type defaults to 'int' in declaration of 'pgres'

./psycopg/cursor.h:81: warning: function declaration isn't a prototype

./psycopg/cursor.h:55: warning: data definition has no type or storage class

./psycopg/cursor.h:57: error: syntax error before 'lastoid'

./psycopg/cursor.h:57: warning: type defaults to 'int' in declaration of 'lastoid'

./psycopg/cursor.h:57: warning: data definition has no type or storage class

./psycopg/cursor.h:78: error: syntax error before '}' token

./psycopg/cursor.h:78: warning: type defaults to 'int' in declaration of 'cursorObject'

./psycopg/cursor.h:78: warning: data definition has no type or storage class

./psycopg/cursor.h:81: error: syntax error before '*' token

./psycopg/cursor.h:81: warning: function declaration isn't a prototype

In file included from psycopg/psycopgmodule.c:31:

./psycopg/microprotocols.h:53: error: syntax error before 'connectionObject'

./psycopg/microprotocols.h:53: warning: function declaration isn't a prototype

./psycopg/microprotocols.h:56: error: syntax error before '*' token

./psycopg/microprotocols.h:56: warning: function declaration isn't a prototype

In file included from psycopg/psycopgmodule.c:31:

./psycopg/microprotocols.h:53: error: syntax error before 'connectionObject'

./psycopg/microprotocols.h:53: warning: function declaration isn't a prototype

./psycopg/microprotocols.h:56: error: syntax error before '*' token

./psycopg/microprotocols.h:56: warning: function declaration isn't a prototype

psycopg/psycopgmodule.c:100: error: syntax error before '*' token

psycopg/psycopgmodule.c:101: warning: function declaration isn't a prototypepsycopg/psycopgmodule.c:100: error: syntax error before '*' token

 

psycopg/psycopgmodule.c: In function '_psyco_connect_fill_exc':psycopg/psycopgmodule.c:101: warning: function declaration isn't a prototype

 

psycopg/psycopgmodule.c:103: error: 'conn' undeclared (first use in this function)

psycopg/psycopgmodule.c:103: error: (Each undeclared identifier is reported only oncepsycopg/psycopgmodule.c: In function '_psyco_connect_fill_exc':

 

psycopg/psycopgmodule.c:103: error: for each function it appears in.)psycopg/psycopgmodule.c:103: error: 'conn' undeclared (first use in this function)

 

psycopg/psycopgmodule.c:103: error: (Each undeclared identifier is reported only once

psycopg/psycopgmodule.c:103: error: for each function it appears in.)

psycopg/psycopgmodule.c: In function 'psyco_connect':

psycopg/psycopgmodule.c: In function 'psyco_connect':

psycopg/psycopgmodule.c:192: error: syntax error before ')' token

psycopg/psycopgmodule.c:192: error: syntax error before ')' token

lipo: can't open input file: /var/tmp//ccBg8q54.out (No such file or directory)

error: command 'gcc' failed with exit status 1

 

Kanskje noen andre som har gjort dette før, og ser hva jeg har gjort feil?

Skrevet (endret)

Har du Developer Tools installert?

 

Anbefaler deg enkelt og greitt å gjere følgande:

  • Last ned MacPorts
  • (installer)
  • Kjør sudo port install python25
  • Kjør sudo port install py25-psycopg2

Done. :)

Endret av Henrik Lied
Skrevet

Noen her som bruker Thunderbird til mail? Tenkte jeg skulle gå fra mail.app til Thunderbird, men er litt i tvil.. noen som har noen for / mot argumenter?

Skrevet
Noen her som bruker Thunderbird til mail? Tenkte jeg skulle gå fra mail.app til Thunderbird, men er litt i tvil.. noen som har noen for / mot argumenter?

Thunderbird hat god støtte for tråding av e-postsamtaler, det har ikke mail.app. Om det er relevant for din bruk. Personlig bruker jeg fremdeles mail.app, men jeg sitter litt på gjerdet. Det er på tide at Apple bygger inn både gamle funksjoner som tråding og nyere funksjoner som tags.

Skrevet

Litt synd å innrømme det, men MS Entourage er faktisk veldig bra til epost. I tillegg har den kalender og notatstøtte, som jeg bruker ganske ofte :)

Skrevet
Hvis det kommer en MacBook i aluminium/MacBook Pro i 13"-versjon, så er jeg solgt umiddelbart.

Bare å benytte angrerett på iMac 24" min da :D:D:D:D

Skrevet (endret)

Det var den siden jeg ca. linket til som fikk han til å skrive det. ;)

 

 

Nå gleder jeg meg bare stort til keynoten. : D

 

Btw. Er det noen som kjenner til utdanningsrabatten til Apple.no? Tilbudet der man får med en gratis iPod når man kjøper en Mac varer til 31. oktober (altså etter Keynoten om den blir 14. oktober som er nevnt). Jeg studerer ikke akkurat nå, men skal det til neste år. Jeg får ikke benyttet det da?

Om jeg skriver at jeg studerer, vil de da sjekke det opp på noen måte?

Endret av :--{D
Skrevet
Hvordan får du det Magnus?

 

Redigert: Skjønner ikke at folk ler av artikkelen. Det er tross alt ganske alvorlig hvis det er sant.

Lagre denne fila som ~/.git-completion og lag deg en .bashrc som ser slik ut:

source ~/.git-completion

gitprompt() {
 PS1="\[\e[0;31m\]\W$(__git_ps1 " \[\e[1;31m\](%s)") \$ \[\e[m\]"
}
PROMPT_COMMAND=gitprompt

 

Magnus: Rødt, grønt og svart? Nei. :-)

Poenget er å ha prompt'en i annen farge slik at man letter ser hvor kommandoen har startet/sluttet :)

Skrevet
Hvis det kommer en MacBook i aluminium/MacBook Pro i 13"-versjon, så er jeg solgt umiddelbart.

Vel ryktene går om veldig spennende nyheter på Macbook-siden.

Åhh... Nå fikk jeg skikkelige sommerfugler i magen her :)

Leste det akkurat nå, men tror jeg nesten må lese det om igjen for å "gjenoppleve" de sommerfuglene :p :!:

Skrevet
Jeg studerer ikke akkurat nå, men skal det til neste år. Jeg får ikke benyttet det da?

Om jeg skriver at jeg studerer, vil de da sjekke det opp på noen måte?

Jeg benyttet meg av den vanlige utdanningsrabatten de har utenom iPod-tilbudet, og ingen har sjekket det så langt. Oppgav lærested, og det var alt som skulle til.

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...