[MacPorts] #28918: libzzip not building
#28918: libzzip not building -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- I have put a new installation of macport and get this error {{{ [Users/fherwig] > install libzzip ---> Computing dependencies for libzzip ---> Building libzzip Error: Target org.macports.build returned: shell command failed (see log for details) Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> [Users/fherwig] > }}} this is my python: {{{ vortex$ python Enthought Python Distribution -- www.enthought.com Version: 7.0-2 (32-bit) Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec 3 2010, 15:41:32) [GCC 4.0.1 (Apple Inc. build 5488)] on darwin }}} This is the tail of the log: {{{ :info:build Making all in docs :info:build PYTHONDONTWRITEBYTECODE=1 echo no python found for ../../docs/makedocs.py ../../zzip/*.c \ :info:build "--package=zziplib" "--version=0.13.59" \ :info:build "--onlymainheader=zzip/lib.h" "-- output=zziplib" :info:build PYTHONDONTWRITEBYTECODE=1 echo no python found for ../../docs/makedocs.py ../../zzip/*.c \ :info:build "--package=zziplib" "--version=0.13.59" \ :info:build "--onlymainheader=zzip/mmapped.h" "-- output=zzipmmapped" :info:build no python found for ../../docs/makedocs.py ../../zzip/dir.c ../../zzip/err.c ../../zzip/fetch.c ../../zzip/file.c ../../zzip/fseeko.c ../../zzip/info.c ../../zzip/memdisk.c ../../zzip/mmapped.c ../../zzi p/plugin.c ../../zzip/stat.c ../../zzip/write.c ../../zzip/zip.c --package=zziplib --version=0.13.59 --onlymainheader=zzip/lib.h --output=zziplib :info:build no python found for ../../docs/makedocs.py ../../zzip/dir.c ../../zzip/err.c ../../zzip/fetch.c ../../zzip/file.c ../../zzip/fseeko.c ../../zzip/info.c ../../zzip/memdisk.c ../../zzip/mmapped.c ../../zzi p/plugin.c ../../zzip/stat.c ../../zzip/write.c ../../zzip/zip.c --package=zziplib --version=0.13.59 --onlymainheader=zzip/mmapped.h --output=zzipmmapped :info:build test -s zzipmmapped.docbook && mv zzipmmapped.docbook zzipmmapped.xml :info:build test -s zziplib.docbook && mv zziplib.docbook zziplib.xml :info:build make[3]: *** [zziplib.xml] Error 1 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build make[3]: *** [zzipmmapped.xml] Error 1 :info:build make[2]: *** [all-recursive] Error 1 :info:build make[1]: *** [all] Error 2 :info:build make: *** [all] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within }}} Seems to indicate I don't have python, but I do, just installed it new from Enthought. -- Ticket URL: <https://trac.macports.org/ticket/28918> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip not building -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by ryandesign@…): MacPorts will not use your Enthought Python, or any other external libraries or programs you may have installed Read the [FAQ] for why. libzzip builds fine for me, even with the Python included with Mac OS X; I wonder why yours did not find that.... Perhaps you could attach the config.log? -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip not building -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by fherwig@…): I added a session log after cleaning up things. Seems I have everything in place, macport python is there and working, but libzzip does not want to install. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by ryandesign@…): libzzip just needs any "python" -- that is to say, either /usr/bin/python (which comes with Mac OS X) or /opt/local/bin/python (which is created when you run `python_select`, which is provided by the python_select port). Do either of these work? What do they say? {{{ /usr/bin/python --version /opt/local/bin/python --version }}} -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by fherwig@…): Replying to [comment:3 ryandesign@…]:
libzzip just needs any "python" -- that is to say, either /usr/bin/python (which comes with Mac OS X) or /opt/local/bin/python (which is created when you run `python_select`, which is provided by the python_select port). Do either of these work? What do they say?
{{{ /usr/bin/python --version /opt/local/bin/python --version }}}
Here you go, python is there: {{{ vortex$ /usr/bin/python --version Python 2.7.1 -- EPD 7.0-2 (32-bit) vortex$ /opt/local/bin/python --version Python 2.7.1 vortex$ sudo port install libzzip ---> Computing dependencies for libzzip ---> Building libzzip Error: Target org.macports.build returned: shell command failed (see log for details) Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> vortex$ tail -n 10 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for libzzip): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log }}} -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by fherwig@…): I tried python 2.6: {{{ vortex$ python_select -s python26 vortex$ /opt/local/bin/python --version Python 2.6.6 vortex$ sudo port install libzzip ---> Computing dependencies for libzzip ---> Building libzzip Error: Target org.macports.build returned: shell command failed (see log for details) Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Replying to [comment:4 fherwig@…]:
vortex$ /usr/bin/python --version [[br]] Python 2.7.1 -- EPD 7.0-2 (32-bit)
So that is this Enthought Python you mentioned? It has overwritten the Python that Apple provided with Mac OS X! That is very bad and we probably cannot help you in this case. You should reinstall the Python that came with Mac OS X. I'm not sure how to do that, short of reinstalling all of Mac OS X. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by fherwig@…): No worries, the original Apple python 2.5 is still there, I had just replaced the link because I like the EPD for science applications. For the purpose of these installation tests I have put all back in place: {{{ vortex$ /usr/bin/python --version Python 2.5.1 vortex$ ls -lat /usr/bin/python lrwxr-xr-x 1 root wheel 67 26 Mar 23:00 /usr/bin/python -> /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python vortex$ python_select -s python25-apple vortex$ sudo port install libzzip ---> Computing dependencies for libzzip ---> Building libzzip Error: Target org.macports.build returned: shell command failed (see log for details) Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> vortex$ }}} But still not libzzip. As you can see above I have also tried using a macport python2.6 via python_select. To no avail. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Changes (by jmr@…): * cc: ryandesign@… (added) Comment: Looks like you didn't clean between changing the link and retrying the build. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by fherwig@…): I am not sure what you mean by 'clean'. I selected the 2.6 python using python_select, the restarted just in case and then checked the python: {{{ w122-146$ pytnon -bash: pytnon: command not found w122-146$ python Python 2.6.6 (r266:84292, Mar 26 2011, 20:58:46) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information.
}}} Then tried installing libzzip: {{{ Users/fherwig] > install libzzip ---> Computing dependencies for libzzip ---> Building libzzip Error: Target org.macports.build returned: shell command failed (see log for details) Log for libzzip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> [Users/fherwig] > }}} And still it complains 'python not found'. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Replying to [comment:9 fherwig@…]:
I am not sure what you mean by 'clean'.
I mean: run: {{{ sudo port clean libzzip }}} This deletes the previous failed build attempt. Then you can try installing again from the beginning. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found -------------------------------+-------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libzzip -------------------------------+-------------------------------------------- Comment(by fherwig@…): Thanks for the help, this works! Wonderfull! -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28918: libzzip build fails because python is not found --------------------------------+------------------------------------------- Reporter: fherwig@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: libzzip | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Ok, so the problems were because you had replaced Mac OS X's python with a link to some other python, and restoring things to a factory configuration made it work. So there's nothing we need to change in MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/28918#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts