[erlang-questions] NIFs, what am I missing?

tom kelly ttom.kelly@REDACTED
Mon Mar 7 10:39:19 CET 2011


Hi Matthew,
Did you add the path to LD_LIBRARY_PATH?
Try adding "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mevans/atis" to
your startup script.
//Tom.



On Fri, Mar 4, 2011 at 10:46 PM, Evans, Matthew <mevans@REDACTED> wrote:

> That wasn't it.
>
> I needed the -m32 option on gcc
>
> gcc -shared -fPIC -o idxavcspc.so idxavcspc.c -I
> /thirdPartyErlang/x86_32/usr/include/ -m32
>
> -----Original Message-----
> From: Paul Davis [mailto:paul.joseph.davis@REDACTED]
> Sent: Friday, March 04, 2011 5:11 PM
> To: Evans, Matthew
> Cc: erlang-questions@REDACTED
> Subject: Re: [erlang-questions] NIFs, what am I missing?
>
> On Fri, Mar 4, 2011 at 4:55 PM, Evans, Matthew <mevans@REDACTED> wrote:
> > The file is there:
> > 9>  filelib:is_file("/home/mevans/atis/idxavcspc.so").
> > true
> >
> > But will not load (won't load from the module either):
> > 10>  erlang:load_nif("/home/mevans/atis/idxavcspc",0).
> > {error,{load_failed,"Failed to load NIF library:
> '/home/mevans/atis/idxavcspc.so: cannot open shared object file: No such
> file or directory'"}}
> >
> > I'm currently confused....
> >
> >
> > Thanks
> >
> > Matt
> >
> > Running: R14B01
> >
>
> Random guess from left field, perhaps the module loader isn't
> following a symlink in that path?
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list