[MacPorts] #45994: pymol: IOError: could not find any of ['glut', 'freeglut']

MacPorts noreply at macports.org
Sun Nov 23 20:27:22 PST 2014


#45994: pymol: IOError: could not find any of ['glut', 'freeglut']
--------------------------+-----------------------------------
 Reporter:  ryandesign@…  |      Owner:  howarth.at.macports@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.3.99
 Keywords:                |       Port:  pymol
--------------------------+-----------------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/45994>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list