On 30.09.2009, at 20:34, Christopher Aubin wrote:

>>  did you compile it yourself? (I guess so). If so please can you do
>>
>> $touch src/init/initmodule.c
>>
>> and run
>>
>> $python setup.py build.
>>
>> Please look if there are any error messages or warnings.
>>
>
> I get these odd warnings:
>
> ld: warning: in /usr/local/lib/libgsl.dylib, file is not of required
> architecture

What do the following commands say?
   lipo -info `which python`
   lipo -info /usr/local/lib/libgsl.dylib
You need to make sure to use the same architecture (i.e., i386 or  
x86_64 or both (universal)) for python, for GSL, and for pygsl...

> ld: warning: in /usr/local/lib/libgslcblas.dylib, file is not of
> required architecture
> ld: warning: in /usr/local/lib/libgsl.dylib, file is not of required
> architecture
> ld: warning: in /usr/local/lib/libgslcblas.dylib, file is not of
> required architecture
>
> This is odd because I have installed gsl recently and have linked to
> it successfully with my c compiler.
>
>> What I can see is, that a symbol is missing in the shared library.
>>
>> Or could you run something like ldd
>> on
>>
>> /Library/Python/2.5/site-packages/pygsl/init.so

Btw, this would be otool -L ...

>>
>> and see if this finds the gsl library?
>>
>
> When I do this, I get the message:
>
> ld: warning: -arch not specified
> ld: warning: in /Library/Python/2.5/site-packages/pygsl/init.so,
> missing required architecture x86_64 in file
> ld: could not find entry point "start" (perhaps missing crt1.o) for
> inferred architecture x86_64
>
> I'm not sure I know exactly where to go from here, so hopefully you
> may have some idea...

>>> I have installed pygsl on my system with no errors seen during
>>> installation and if I try to run python and import say, pygsl.rng,
>>> I  get:
>>>
>>> ---------
>>> Did you try to import pygsl in the build directory?
>>>
>>> Well, that does not work out of the box. If you want to do that,
>>> please
>>> use
>>>      python setup.py build_ext -i
>>> to add the necessary extension module in the local pygsl/ directory!
>>>
>>> Please read the README first! Any further questions or missing
>>> information
>>> please post to pygsl-disc...@lists.sourceforge.net!
>>>
>>> Traceback (most recent call last):
>>>  File "<stdin>", line 1, in <module>
>>>  File "/Library/Python/2.5/site-packages/pygsl/__init__.py", line
>>> 57, in <module>
>>>    import pygsl.init
>>> ImportError: dlopen(/Library/Python/2.5/site-packages/pygsl/
>>> init.so,  2): Symbol not found: _gsl_version
>>>  Referenced from: /Library/Python/2.5/site-packages/pygsl/init.so
>>>  Expected in: flat namespace
>>> in /Library/Python/2.5/site-packages/pygsl/init.so
>>> ---------
>>>
>>> I'm not in the build directory, and the same error pops up when I
>>> try  to run the tests in the tests directory. I'm using python2.5
>>> on Mac OS  X.6.1, and gsl version 1.13.

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
     Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
         Sex, drugs and rock-n-roll



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
pygsl-discuss mailing list
pygsl-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pygsl-discuss

Reply via email to