On Jan 5, 2:10 pm, "Simone Ramacci - Simosito.it" <[email protected]>
wrote:
> Mike Driscoll ha scritto:
>
>
>
> > On Jan 2, 8:54 pm, Giovanni Bajo <[email protected]> wrote:
>
> >> On Fri, 2 Jan 2009 13:20:59 -0800 (PST), Mike Driscoll <[email protected]>
> >> wrote:
>
> >>> Hi,
>
> >>> I am attempting to install PyInstaller 1.3 on Ubuntu 8.1 and when I
> >>> run Make.py I get the following warning:
>
> >>> "could not find Python static library at: /usr/lib/python2.5/config/
> >>> libpython2.5.a"
>
> >>> If I go ahead and run make after that, I get a bunch of errors:
>
> >>> gcc -pthread  -I/usr/include -I/usr/include/python2.5 -I../common -
> >>> DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -
> >>> DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DHAVE_WARNINGS -c
> >>> getpath.c -o getpath.o
> >>> getpath.c:39:20: error: Python.h: No such file or directory
> >>> getpath.c:40:20: error: osdefs.h: No such file or directory
> >>> getpath.c:54: error: ‘MAXPATHLEN’ undeclared here (not in a function)
> >>> getpath.c: In function ‘reduce’:
> >>> getpath.c:63: error: ‘SEP’ undeclared (first use in this function)
> >>> getpath.c:63: error: (Each undeclared identifier is reported only once
> >>> getpath.c:63: error: for each function it appears in.)
> >>> getpath.c: In function ‘joinpath’:
> >>> getpath.c:135: error: ‘SEP’ undeclared (first use in this function)
> >>> getpath.c: In function ‘calculate_path’:
> >>> getpath.c:152: warning: implicit declaration of function
> >>> ‘Py_GetProgramName’
> >>> getpath.c:152: warning: initialization makes pointer from integer
> >>> without a cast
> >>> getpath.c:159: error: ‘SEP’ undeclared (first use in this function)
> >>> getpath.c:169: warning: implicit declaration of function ‘getenv’
> >>> getpath.c:169: warning: assignment makes pointer from integer without
> >>> a cast
> >>> getpath.c:177: error: ‘DELIM’ undeclared (first use in this function)
> >>> getpath.c:197: warning: implicit declaration of function ‘free’
> >>> getpath.c:197: warning: incompatible implicit declaration of built-in
> >>> function ‘free’
> >>> getpath.c:157: warning: unused variable ‘numchars’
> >>> getpath.c:153: warning: unused variable ‘argv0_path’
> >>> make: *** [getpath.o] Error 1
>
> >>> Do I need a dev version of Python installed to install PyInstaller? I
> >>> am using Python 2.5.
>
> >> Yes: apt-get install python-dev
> >> --
> >> Giovanni Bajo
> >> Develer S.r.l.http://www.develer.com
>
> > Thanks for the info. While  it does indeed get rid of the error
> > mentioned in my OP, I now get the following:
>
> > m...@ubuntu-vm:~/Desktop/pyinstaller-1.3/source/linux$ make
> > gcc -pthread  -I/usr/include -I/usr/include/python2.5 -I../common -
> > DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -
> > DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DHAVE_WARNINGS -c ../
> > common/launch.c -o launch.o
> > ../common/launch.c:44:18: error: zlib.h: No such file or directory
> > ../common/launch.c: In function ‘openArchive’:
> > ../common/launch.c:229: warning: ignoring return value of ‘fread’,
> > declared with attribute warn_unused_result
> > ../common/launch.c:248: warning: ignoring return value of ‘fread’,
> > declared with attribute warn_unused_result
> > ../common/launch.c: In function ‘importModules’:
> > ../common/launch.c:603: warning: pointer targets in passing argument 1
> > of ‘PyString_FromStringAndSize’ differ in signedness
> > ../common/launch.c:614: warning: format not a string literal and no
> > format arguments
> > ../common/launch.c:578: warning: unused variable ‘buf’
> > ../common/launch.c:577: warning: unused variable ‘res’
> > ../common/launch.c:573: warning: unused variable ‘pyfile’
> > ../common/launch.c: In function ‘installZlib’:
> > ../common/launch.c:647: warning: format not a string literal and no
> > format arguments
> > ../common/launch.c: In function ‘decompress’:
> > ../common/launch.c:689: error: ‘z_stream’ undeclared (first use in
> > this function)
> > ../common/launch.c:689: error: (Each undeclared identifier is reported
> > only once
> > ../common/launch.c:689: error: for each function it appears in.)
> > ../common/launch.c:689: error: expected ‘;’ before ‘zstream’
> > ../common/launch.c:693: error: ‘zlibVersion’ undeclared (first use in
> > this function)
> > ../common/launch.c:700: error: ‘zstream’ undeclared (first use in this
> > function)
> > ../common/launch.c:707: warning: implicit declaration of function
> > ‘inflateInit’
> > ../common/launch.c:709: error: ‘inflate’ undeclared (first use in this
> > function)
> > ../common/launch.c:709: error: ‘Z_FINISH’ undeclared (first use in
> > this function)
> > ../common/launch.c:711: error: ‘inflateEnd’ undeclared (first use in
> > this function)
> > ../common/launch.c:715: warning: format not a string literal and no
> > format arguments
> > ../common/launch.c:721: warning: format not a string literal and no
> > format arguments
> > ../common/launch.c: In function ‘extract’:
> > ../common/launch.c:753: warning: format not a string literal and no
> > format arguments
> > ../common/launch.c:745: warning: ignoring return value of ‘fread’,
> > declared with attribute warn_unused_result
> > ../common/launch.c: In function ‘extract2fs’:
> > ../common/launch.c:806: warning: format not a string literal and no
> > format arguments
> > ../common/launch.c:810: warning: ignoring return value of ‘fwrite’,
> > declared with attribute warn_unused_result
> > ../common/launch.c: In function ‘runScripts’:
> > ../common/launch.c:854: warning: pointer targets in passing argument 1
> > of ‘PyRun_SimpleStringFlags’ differ in signedness
> > ../common/launch.c: In function ‘init’:
> > ../common/launch.c:978: warning: unused variable ‘p’
> > make: *** [launch.o] Error 1
>
> > It looks like some stuff is coded right or I got a bad copy. Anyway,
> > additional advice would be appreciated. Thanks!
>
> > Mike
>
> Try with:
> apt-get install zlib1g-dev libc6-dev python-dev
>
> (If I read fine you already have installed python-dev but I put all of
> them anyway for this command may be useful to somebody else)
>
> Cheers,
> Simone Ramacci

This seems to have done the trick. I still got some warnings, but no
errors. Thanks!

Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to