Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on a Mac with 64-bit architecture #17

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 7 comments
Open

Installation on a Mac with 64-bit architecture #17

GoogleCodeExporter opened this issue Mar 15, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Installation following the installation page on a machine with 64-bit 
architecture
2.
3.

What is the expected output? What do you see instead?
I got the following warnings when running 'python setup.py 
--with-minuit=(pathname to 
Minuit-1_7_9)'

ld: warning: in 
/Users/lisa/installations/Minuit-1_7_9/src/.libs/liblcg_Minuit.dylib, file is 
not of 
required architecture
ld: warning: in 
/Users/lisa/installations/Minuit-1_7_9/src/.libs/liblcg_Minuit.dylib, file is 
not of 
required architecture
running install_lib

When I import into python, I get the following error:
In [1]: import minuit
--------------------------------------------------------------------------
-
ImportError                               Traceback (most recent call last)

/Users/lisa/<ipython console> in <module>()

ImportError: dlopen(/Library/Python/2.6/site-packages/minuit.so, 2): Symbol not 
found: 
__ZN13MnApplicationclEjd
  Referenced from: /Library/Python/2.6/site-packages/minuit.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/minuit.so


What version of the product are you using? On what operating system?
Snowleopard

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Apr 2010 at 4:34

@GoogleCodeExporter
Copy link
Author

On OS X, the name of the relevant environment variable is "DYLD_LIBRARY_PATH".  
The installation instructions have been updated.

Original comment by [email protected] on 6 Nov 2010 at 7:41

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

I have a similar (or same?) problem using Mac OS 10.6.6 with python installed 
from http://python.org/download/releases/2.6.6/ .  I installed pyminut and 
Minuit from /usr/local/src/* using sudo.  Setting DYLD_LIBRARY_PATH, 
DY_LIBRARY_PATH, nor LD_LIBRARY_PATH does not help.  Note that current MAC OS 
instructions include:

% export DYLD_LIBRARY_PATH=/location/of/Minuit-1_7_9/src/.libs:$DY_LIBRARY_PATH

I suspect that it is either DYLD_... or DY_... but not both.

The Minuit build had a few warnings but did not end with a fatal error:

FF:pyminuit $ pwd
/usr/local/src/pyminuit

FF:pyminuit $ sudo python setup.py install 
--with-minuit=/usr/local/src/Minuit-1_7_9
********************************************************************************
****************
Assuming Minuit directory is: /usr/local/src/Minuit-1_7_9
********************************************************************************
****************
running install
running build
running build_ext
building 'minuit' extension
creating build
creating build/temp.macosx-10.3-fat-2.6
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 
-DNDEBUG -g -O3 -I/usr/local/src/Minuit-1_7_9 
-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
minuit.cpp -o build/temp.macosx-10.3-fat-2.6/minuit.o
In file included from /usr/include/architecture/i386/math.h:626,
                 from /usr/include/math.h:28,
                 from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
                 from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
                 from minuit.h:21,
                 from minuit.cpp:21:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel 
with Mac OS X Deployment Target < 10.4 is invalid.
creating build/lib.macosx-10.3-fat-2.6
c++ -arch ppc -arch i386 -g -bundle -undefined dynamic_lookup 
build/temp.macosx-10.3-fat-2.6/minuit.o -L/usr/local/src/Minuit-1_7_9/src/.libs 
-llcg_Minuit -o build/lib.macosx-10.3-fat-2.6/minuit.so
ld: warning: in /usr/local/src/Minuit-1_7_9/src/.libs/liblcg_Minuit.dylib, file 
was built for unsupported file format which is not the architecture being 
linked (ppc)
ld: warning: in /usr/local/src/Minuit-1_7_9/src/.libs/liblcg_Minuit.dylib, file 
was built for unsupported file format which is not the architecture being 
linked (i386)
running install_lib
copying build/lib.macosx-10.3-fat-2.6/minuit.so -> 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
running install_egg_info
Writing 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py
Minuit-1.1.2-py2.6.egg-info


The error I get when loading minuit is:

FF:~ $ python -c 'import minuit'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pack
ages/minuit.so, 2): Symbol not found: __ZN13MnApplicationclEjd
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/minuit.so
  Expected in: dynamic lookup


Note difference of "Expected in: dynamic lookup" vs. "flat namespace" of 
original post.  But the missing symbol is the same.

Original comment by [email protected] on 4 Feb 2011 at 6:33

@GoogleCodeExporter
Copy link
Author

I am still unable to get this working on my Mac Pro.  I agree with the second 
post, changing the environment variable was not a fix.  I get the same error 
when trying to import minuit into python.

dlopen(/Users/lisa/lib/python/minuit.so, 2): Symbol not found: 
__ZN13MnApplicationclEjd
  Referenced from: /Users/lisa/lib/python/minuit.so
  Expected in: flat namespace
 in /Users/lisa/lib/python/minuit.so

I checked to see which of the files are missing from the bottom note in the 
installation instructions.  With the standard installation, the files end up in 
the /usr/local/lib instead of /usr/lib.  

Any ideas on the problem?

Original comment by [email protected] on 24 Jun 2011 at 3:06

@GoogleCodeExporter
Copy link
Author

Same problem, and (as above) changing environmental variable as described in 
the installation instructions does not fix it.  Using Python 2.6.1 
(r261:67515), Minuit 1.7.9.

I get the following error:
 dlopen(/Users/ianc/Downloads/pyminuit/build/lib.macosx-10.6-universal-2.6/minuit.so, 2): Symbol not found: __ZN13MnApplicationclEjd
  Referenced from: /Users/ianc/Downloads/pyminuit/build/lib.macosx-10.6-universal-2.6/minuit.so
  Expected in: flat namespace
 in /Users/ianc/Downloads/pyminuit/build/lib.macosx-10.6-universal-2.6/minuit.so


Original comment by [email protected] on 9 Nov 2011 at 11:16

@GoogleCodeExporter
Copy link
Author

I am using python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51), and Minuit 1_7_9. 
I'm having the same issues as above. 

>>> import minuit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pack
ages/minuit.so, 2): Symbol not found: __ZN13MnApplicationclEjd
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/minuit.so
  Expected in: dynamic lookup

Original comment by [email protected] on 5 Dec 2011 at 9:33

@GoogleCodeExporter
Copy link
Author

Exact same problem. Running EPD 7.2.2 (python 2.7) with OS X 10.6.8, and it 
throws an error when I try to import the module:

Symbol not found: __ZN13MnApplicationclEjd

Does this indicate a compile error? Has anyone found a solution or a reason why 
this seems to be happening?

Original comment by [email protected] on 13 Apr 2012 at 1:49

@GoogleCodeExporter
Copy link
Author

HI, 

Still I have this problem.
On my architecture, error message was 

************************************
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/minuit.so, 2): Symbol not 
found: 
__ZNK24ModularFunctionMinimizer8minimizeERK15FCNGradientBaseRKNSt3__16vectorIdNS
3_9allocatorIdEEEES9_jjd
  Referenced from: /Library/Python/2.7/site-packages/minuit.so
  Expected in: /usr/local/lib/liblcg_Minuit.0.dylib
 in /Library/Python/2.7/site-packages/minuit.so
************************************

Is there any way to avoid this problem?

Original comment by [email protected] on 19 Sep 2014 at 6:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant