Opened 10 years ago
Closed 10 years ago
#45994 closed defect (worksforme)
pymol: IOError: could not find any of ['glut', 'freeglut']
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | howarth.at.macports@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.99 |
Keywords: | Cc: | petrrr | |
Port: | pymol |
Description
Hello, I find that I am unable to even begin building pymol because it cannot find glut or freeglut:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_pymol/pymol/work/pymol" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg install --prefix=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 --root=/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_pymol/pymol/work/destroot' DEBUG: Executing command line: cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_pymol/pymol/work/pymol" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg install --prefix=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 --root=/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_pymol/pymol/work/destroot fatal: Not a git repository (or any of the parent directories): .git svn: E155007: '/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_pymol/pymol/work/pymol' is not a working copy Traceback (most recent call last): File "setup.py", line 239, in <module> glut = posix_find_lib(['glut', 'freeglut'], lib_dirs) File "setup.py", line 64, in posix_find_lib raise IOError('could not find any of ' + str(names)) IOError: could not find any of ['glut', 'freeglut']
freeglut is installed and it provides the glut library:
$ port -v installed name:glut The following ports are currently installed: freeglut @2.8.1_0+universal (active) platform='darwin 14' archs='i386 x86_64' $ port contents freeglut | grep dylib /opt/local/lib/libglut.3.dylib /opt/local/lib/libglut.dylib
I would be nice to know what commands setup.py is running to determine the existence of these libraries.
If I understand the code in setup.py correctly, the below should be equivalent to what setup.py is running, but it correctly detects freeglut's glut library:
$ echo 'int main(){}' | gcc -o /dev/null -x c - -L/opt/local/lib -lglut ; echo $? 0 $ echo 'int main(){}' | gcc -o /dev/null -x c - -L/opt/local/lib -lfreeglut ; echo $? ld: library not found for -lfreeglut clang: error: linker command failed with exit code 1 (use -v to see invocation) 1
Here is my system information:
$ sw_vers ProductName: Mac OS X ProductVersion: 10.10.1 BuildVersion: 14B25 $ xcodebuild -version Xcode 6.1 Build version 6A1052d $ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.0.0 Thread model: posix
Attachments (1)
Change History (3)
Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | main.log.bz2 added |
---|
comment:1 Changed 10 years ago by petrrr
Cc: | petr@… added |
---|
comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I'm no longer able to reproduce this failure. Not sure what fixed it.
Note: See
TracTickets for help on using
tickets.
Cc Me!