FEconv
FEconv copied to clipboard
"feconv" error
Hello, I am trying to use feconv to change my mesh file format from .msh to .unv. But after unzipping the directory, and running the make command in my mac, ( make -f Makefile.gfortran.osx-10.11-elcapitan), I get the following error every time I try feconv command:
$ feconv -gm examples/dt5.msh dt5.unv -bash: feconv: command not found
even though "feconv" is generated in my directory after "make" command is run. Any ideas what could have gone wrong in this process?
Hi,
depending on your shell configuration file, the OS could require that you run ./feconv instad of feconv.
Best, Francisco Pena
El dom., 24 feb. 2019 a las 21:49, fkoushan ([email protected]) escribió:
Hello, I am trying to use feconv to change my mesh file format from .msh to .unv. But after unzipping the directory, and running the make command in my mac, ( make -f Makefile.gfortran.osx-10.11-elcapitan), I get the following error every time I try feconv command:
$ feconv -gm examples/dt5.msh dt5.unv -bash: feconv: command not found
even though "feconv" is generated in my directory after "make" command is run. Any ideas what could have gone wrong in this process?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorsndvg/FEconv/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLNbVquGtT1hvK2BIfcoJdex08V_IKOks5vQvrcgaJpZM4bOwrM .
--
Francisco José Pena Brage Departamento de Matemática Aplicada Facultade de Matemáticas. Campus Vida 15782 Santiago de Compostela - Spain Tel.: +34 8818 13194 Fax: +34 8818 13197 Email: fran(dot)pena(at)usc(dot)es http://www.usc.es/ingmat http://www.usc.es/ingmat [email protected]
Hello Francisco, Thanks for your reply - I did try ./feconv command as well. and here is the error I get:
Foroozans-MBP:FEconv-master foroozankoushan$ ./feconv -h dyld: Library not loaded: libbasicmod.dylib Reason: image not found Abort trap: 6
Is the library that is being referred to supposed to be loaded during "make" command run? Thanks,
Hi,
you have to include the path to the library in the variable DYLD_LIBRARY_PATH. That is, write something like
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:
where
Best, Francisco
El lun., 25 feb. 2019 a las 15:44, fkoushan ([email protected]) escribió:
Hello Francisco, Thanks for your reply - I did try ./feconv command as well. and here is the error I get:
Foroozans-MBP:FEconv-master foroozankoushan$ ./feconv -h dyld: Library not loaded: libbasicmod.dylib Reason: image not found Abort trap: 6
Is the library that is being referred to supposed to be loaded during "make" command run? Thanks,
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/victorsndvg/FEconv/issues/4#issuecomment-467036995, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLNbYrmcTSg4cybSaTE4NHRLHJFTN3Bks5vQ_bCgaJpZM4bOwrM .
Hello, Could I type the address to the library as I am inside the feconv directory, or do I need to be somewhere else? I typed the following command line when inside the feconv-master directory: Foroozans-MBP:FEconv-master foroozankoushan$ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/foroozankoushan/Documents/FEconv-master/lib
then tested it with: ./feconv -h
and got the same error message as before: Foroozans-MBP:FEconv-master foroozankoushan$ ./feconv -h dyld: Library not loaded: libbasicmod.dylib Referenced from: /Users/foroozankoushan/Documents/FEconv-master/./feconv Reason: image not found Abort trap: 6
Thanks,
Hi,
The problem is how to find a dynamic library in OS X. I cannot make a test in that platform at this moment. To redefine the variable DYLD_LIBRARY_PATH was the suitable way to do it that I found in the specialized forums. Please, check whether you are using OS X 10.11 El Capitan, the OS X version where I tested it.
Best,
El mié., 27 feb. 2019 a las 7:29, fkoushan ([email protected]) escribió:
Hello, Could I type the address to the library as I am inside the feconv directory, or do I need to be somewhere else? I typed the following command line when inside the feconv-master directory: Foroozans-MBP:FEconv-master foroozankoushan$ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/foroozankoushan/Documents/FEconv-master/lib
then tested it with: ./feconv -h
and got the same error message as before: Foroozans-MBP:FEconv-master foroozankoushan$ ./feconv -h dyld: Library not loaded: libbasicmod.dylib Referenced from: /Users/foroozankoushan/Documents/UCSC/PhD_dissertation/FEconv-master/./feconv Reason: image not found Abort trap: 6
Thanks,
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/victorsndvg/FEconv/issues/4#issuecomment-467740756, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLNba0qYIgqdgkiShP0bgtu29bkVHPIks5vRiW4gaJpZM4bOwrM .
@fkoushan @fran-pena I had the same error. It is actually NOT recommended to change the DYLD_LIBRARY_PATH variable. An alternative is this:
The libbasicmod library is situated in the basicmod/lib folder. Move to the FEconv-master folder in the terminal. In order to include this library when running for feconv, you can simply check, where it is searched for at the moment by:
otool -L feconv
The first line gives an indication to where the build thinks this library is. Change that using
install_name_tool -change current_direction_where_it_is_looking basicmod/lib/libbasicmod.dylib feconv
Now you are ready to For more details see the forum: https://stackoverflow.com/questions/17703510/dyld-library-not-loaded-reason-image-not-found