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

"feconv" error #4

Open
fkoushan opened this issue Feb 24, 2019 · 6 comments
Open

"feconv" error #4

fkoushan opened this issue Feb 24, 2019 · 6 comments

Comments

@fkoushan
Copy link

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?

@fran-pena
Copy link
Collaborator

fran-pena commented Feb 25, 2019 via email

@fkoushan
Copy link
Author

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,

@fran-pena
Copy link
Collaborator

fran-pena commented Feb 25, 2019 via email

@fkoushan
Copy link
Author

fkoushan commented Feb 27, 2019

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,

@fran-pena
Copy link
Collaborator

fran-pena commented Feb 27, 2019 via email

@ThomasThurnher
Copy link

@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

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

No branches or pull requests

3 participants