Page 1 of 1

dlopen failed - after successful compilation of Mod files

Posted: Mon Mar 02, 2020 10:50 am
by simonvhardy
I am running into an issue.

I recently installed NEURON 7.7.2 after uninstalling a previous version. My MacOS is Mojave 10.14.6 (18G95). NeuronDemo works fine when I open it from the console.

I can compile mod files but when I try to launch the model with nrngui, I get the following error:

Code: Select all

NEURON -- VERSION 7.7.2 7.7 (2b7985ba) 2019-06-20
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2018
See http://neuron.yale.edu/neuron/credits

loading membrane mechanisms from /Users/simonvhardy/Documents/Recherche/NEURON/CA1/Modele_Complet/Neuron/Mod_Files/x86_64/.libs/libnrnmech.so
dlopen failed - 
dlopen(/Users/simonvhardy/Documents/Recherche/NEURON/CA1/Modele_Complet/Neuron/Mod_Files/x86_64/.libs/libnrnmech.so, 2): image not found
I could simulate models with previous versions.

When I look at the libnrnmech.so, I see:

Code: Select all

otool -L x86_64/.libs/libnrnmech.so
x86_64/.libs/libnrnmech.so:
	/Applications/NEURON-7.7/nrn/x86_64/lib/libnrnoc.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/liboc.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libmemacs.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libscopmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libsparse13.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libreadline.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libnrniv.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libivoc.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libneuron_gnu.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libmeschach.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Applications/NEURON-7.7/nrn/x86_64/lib/libsundials.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
Anyone has an idea where I should look for a fix?

Re: dlopen failed - after successful compilation of Mod files

Posted: Mon Mar 02, 2020 11:25 am
by simonvhardy
Some precisions.

It is the first time I simulate this specific model. It was developed in my lab and I cloned it from our Git repository.

I just tested another model I developed myself a your ago and the compilation/simulation went fine.

Re: dlopen failed - after successful compilation of Mod files

Posted: Wed Mar 11, 2020 5:22 pm
by simonvhardy
Problem solved.

Re: dlopen failed - after successful compilation of Mod files

Posted: Fri Mar 13, 2020 11:38 am
by ted
What was the fix?