Page 1 of 1

nrnivmodl without gui

Posted: Wed Apr 09, 2008 9:30 am
by horstmann
Hello!

I installed neuron 6.1 on a ubuntu system (AMD64) from the binary rpm-package via alien.
The ubuntu system is part of a cluster, so it has no graphical interface. As far as I can see everything works fine, but compiling nmodl-files I run into a problem.
The compiling process stops as the linker complains that he cannot find X11.
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [libnrnmech.la] Fehler 1
Reading in the forum I saw that it is possible to avoid the gui at all building neuron from source code. https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=1171

Honestly I hope that there is really simple solution like an option for nrnivmodl, so that I don't have to bother me with compiling from scratch.

Posted: Thu Apr 10, 2008 10:20 am
by hines
/usr/bin/ld: cannot find -lX11
Uninstall and try the latest rpm at
http://www.neuron.yale.edu/ftp/neuron/versions/alpha/
We no longer link against X11 or Python when constructing shared libraries for the mod files.
On a single processor you may want to launch neuron with the -nogui option to avoid DISPLAY complaints.
Note that the rpm is not configured with the --with-mpi (or more general --with-paranrn) and so is not a parallel mpi version. That is something to consider if you want to run on a cluster.

If you do not wish to uninstall, just edit the <prefix>/<cpu>/bin/nrnmech_makefile
and make the appropriate lines look like

Code: Select all

#IV_LIBS = @IV_LIBS_LIBTOOL@ $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS)
IV_LIBS =

#PY_LIBS = @NRNPYTHON_LIBS@
PY_LIBS =


Posted: Mon Apr 14, 2008 5:16 am
by horstmann
Thank you,

it seems to work fine.
I don't need parallel computation, so this version is completly sufficient for my needs.