#51547 closed defect (invalid)
xorg-xcb-proto fails to install, bad python version check
Reported by: | artist.impressionist@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | xorg-xcb-proto |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
as part of installing opencv it bombs on installing xorg-xcb-proto
:info:configure checking whether /opt/local/bin/python2.7 version is >= 2.5... no :info:configure configure: error: Python interpreter is too old :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-xcb-proto/xorg-xcb-proto/work/xcb-proto-1.12" && ./configure --prefix=/opt/local :info:configure Exit code: 1
i check the python version
/opt/local/bin/python2.7 --version Python 2.7.11
Attachments (2)
Change History (12)
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to jeremyhu@… |
---|
comment:2 Changed 8 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
comment:3 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Please provide your config.log as indicated by the terminal output when you encounter the error.
comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:5 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → invalid |
---|---|
Status: | new → closed |
/Volumes/OSX_10.11.3/opt/local/bin/python2.7: Permission denied
comment:6 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
It looks like you configured MacPorts with a prefix of /Volumes/OSX_10.11.3/opt/local, but you don't have permissions for that.
Changed 8 years ago by artist.impressionist@…
Attachment: | config.log2 added |
---|
config.log with /opt/local in macports.conf
comment:7 Changed 8 years ago by artist.impressionist@…
ok, now i need to fix this, imagemagick has a dependency on xorg-xcb-proto and will not build.
has anyone run into issues with homebrew pythonpath causing conflicts?
comment:8 Changed 8 years ago by artist.impressionist@…
I finally got this
xorg-xcb-proto
and
xorg-libxcb
to build.
the errors are cause because the port tries to build in the /opt/local/blah/blah but for some reason sudo is not being passed down to the spawned or forked processes. i went to the source directories and manually sudo make for all of the xcb libs and they have are built. these should be build somewhere like /tmp if you're not going to pass the sudo flag.
this had nothing to do with the mount location of using /opt/local/blah or /Volumes/MacOSX_11/opt/local/blah
so much for this "closed defect: invalid", wrong answer try again.
comment:9 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
This has nothing to do with Homebrew.
As stated in the log, you have restricted permissions:
74 configure:2423: /opt/local/bin/python2.7 -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex) 75 ./configure: line 2424: /opt/local/bin/python2.7: Permission denied
Look at the permissions of all those relevant files to see why you're getting EPERM. Eg:
$ ls -ld /opt /opt/local /opt/local/bin /opt/local/bin/python2.7 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 drwxr-xr-x 5 root wheel 170 Jan 24 00:58 /opt drwxr-xr-x 13 root admin 442 Apr 11 02:56 /opt/local -rwxr-xr-x 1 root wheel 33728 Apr 11 02:42 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 drwxr-xr-x 2695 root admin 91630 Jun 3 02:09 /opt/local/bin lrwxr-xr-x 1 root admin 73 Apr 11 02:42 /opt/local/bin/python2.7 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
By "sudo is not being passed down to the spawned or forked processes" do you mean that root permissions are not being used to build? Yes, that is correct and intentional. Projects are built as the macports role account user and then installed as root.
comment:10 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
so much for this "closed defect: invalid", wrong answer try again
AFAICT, all evidence points to user error of modifying permissions in an unsupported way. If you have evidence to the contrary, please reopen.
In the future, please use WikiFormatting and Cc the port maintainers (
port info --maintainers xorg-xcb-proto
), if any.