nrnivmodl without gui

Post Reply

nrnivmodl without gui

Post by horstmann »


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: *** [] Fehler 1
Reading in the forum I saw that it is possible to avoid the gui at all building neuron from source code.

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.
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

/usr/bin/ld: cannot find -lX11
Uninstall and try the latest rpm at
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




Post by horstmann »

Thank you,

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