Closed
Description
Continued from #22
By the report from @rnhmjoj, pyenv fails to build ssl module for CPython 3.3.2.
The full output of pyenv install -v 3.3.2
is at https://gist.github.com/Rnhmjoj/5875462
Continued from #22
By the report from @rnhmjoj, pyenv fails to build ssl module for CPython 3.3.2.
The full output of pyenv install -v 3.3.2
is at https://gist.github.com/Rnhmjoj/5875462
Activity
rnhmjoj commentedon Jun 27, 2013
@yyuu
You were probably right. The problem is another. I have just tried installing CPython 2.7 and failed.
I get
ImportError: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
yyuu commentedon Jun 27, 2013
Which version of OS X are you using? Beta release of OS X 10.9??
My installation of OS X 10.7 has OpenSSL and SQLite3 at the following paths by default. How's about your system?
rnhmjoj commentedon Jun 27, 2013
Yes, I am using 10.9.
I have the two dylib in /usr/lib but the include folder is not in /usr.
I think is inside /Application/Xcode.app
yyuu commentedon Jun 27, 2013
hmm, I've never tried Mavericks yet.
If there are no development headers on
/usr/include
or/usr/local/include
, you can specify optional paths for these files viaCFLAGS
.yyuu commentedon Jun 27, 2013
brew might install formulas keg only if they are installed by default. You might need to set
LDFLAGS
andCFLAGS
for some of keg-only formulas explicitly when building CPython.rnhmjoj commentedon Jun 27, 2013
I found temporary fix.
In OS X 10.9 there is a /usr/include for every SDK installed.
I made a symlink to the old path of include:
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk/usr/include/ /usr/include
and the installation succeeded.
Can you update pyenv to check for OS X 10.9 and set the correct flags?
yyuu commentedon Jun 27, 2013
I don't like platform specific workaround in pyenv itself. But there is still a chance in custom pyenv plugin to hook
before_install
and set proper build flags for the OS X 10.9.I'd like to keep track on this issue and see how other packaging tools for OS X deal with this.
rnhmjoj commentedon Jun 27, 2013
Have a look at this issue.
brent-hoover commentedon Jul 13, 2013
FWIW, I am seeing issues with building the exact same versions of Python on Mountain Lion, but I get a different error: File "", line 988, in get_code
ValueError: unmarshallable object
Have two different laptops with different configurations and both fail on just those versions of Python. 3.3.1 (being that its the current stable 3.x) is the big one there.
rnhmjoj commentedon Jul 13, 2013
@zenweasel I was trying to build CPython 3.3.2, not 3.3.1.
In my case the build failed because of the missing
/usr/include
in Mavericks. On Mountain Lion you should have this directory. I don't know whether the issue is the same, probably not.yyuu commentedon Jul 14, 2013
@zenweasel See #29
hovsater commentedon Oct 20, 2013
Yeah, this seems to be due to changes made in 10.9 to support multiple SDKs.
I successfully installed
3.3.2
by doingCFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.3.2
.daenney commentedon Nov 3, 2013
I've had no compilation issues on Mavericks/10.9 when calling
pyenv install 2.7
orpyenv install 3.3.2
.rnhmjoj commentedon Nov 3, 2013
@daenney I have just tried and it's working.
It seems that in the final release of Mavericks there is a
/usr/include
so @yyuu can close the issue now.yyuu commentedon Nov 5, 2013
Ok. Thanks for the confirmation 👍
3 remaining items