[m-users.] Beginner question: How to use an installed library
Dirk Ziegemeyer
dirk at ziegemeyer.de
Fri Sep 4 23:07:32 AEST 2015
Hi,
>>> It’s my first time that I want to install and use an external Mercury library. I followed the instructions in the user guide but wasn’t successful.
>>>
>>> First I installed Julien’s mercury_csv library:
>>> $ make INSTALL_PREFIX=/Users/dirk/temp/mercury_csv install
>>>
>>>
>>> Then I try to use the library:
>>> csv-test dirk$ mmc --make infer_desc_ex --ml libmercury_csv --mld /Users/dirk/temp/mercury_csv/lib/mercury
>> ^^^^^^^^^^^^^^^^^^^
>> That should be:
>>
>> --ml mercury_csv
>>
>> (i.e. without the lib prefix)
>
> Thank you - it compiles now.
I can’t run the compiled executable:
Dirks-MacBook:csv-test dirk$ ./infer_desc_ex < Testdatei.csv
dyld: Library not loaded: /usr/local/mercury-rotd-2015-02-20/lib/mercury/lib/hlc.gc/libmercury_csv.dylib
Referenced from: /Users/dirk/temp/Mercury/csv-test/./infer_desc_ex
Reason: image not found
Trace/BPT trap: 5
How can I tell the executable, that it can find the library at
/Users/dirk/temp/mercury_csv/lib/mercury/lib/hlc.gc/libmercury_csv.dylib?
Kind regards,
Dirk
More information about the users
mailing list