building NEURON on OSX 10.4 against X11
building NEURON on OSX 10.4 against X11
I have been attempting to build NEURON 6.0.4 on MacOSX 10.4.10 (Intel) against X11. Although I was able to compile InterViews and NEURON successfully, running nrngui does not pop up the graphical menu bar (nrniv does start and displays its command-line prompt, however). Apart from a complaint regarding the default font, no error messages are printed. What could be wrong? I have confirmed that the DISPLAY variable is properly set and that X11 is running.
I haven't tried building with X11 on a mac for some years. Did you launch from an xterm or from a Terminal window? I'd expect the former to work properly.
What configuration lines did you use to configure InterViews and nrn?
Just curious-- where did you get X11?
If you continue to have problems I can
install x11 on my machine and see if I can
get NEURON working in that mode.
What configuration lines did you use to configure InterViews and nrn?
Just curious-- where did you get X11?
If you continue to have problems I can
install x11 on my machine and see if I can
get NEURON working in that mode.
I used the X11 development files and display server provided by Apple. The former are included with Xcode and the latter is available on the MacOSX 10.4 installation DVD and/or online (I am using version 1.1.3 of the latter; there may be more than one version available online).
I tried launching nrngui from xterm and from a Terminal window with the same results (i.e., the command prompt starts, but no menubar appears).
Here are the configuration lines I used when building the software (parent directory obviously generalized).
For InterViews:
./configure --prefix=/somewhere/iv --exec-prefix=/somewhere/iv --libdir=/somewhere/iv/lib --with-x
For NEURON:
./configure --prefix=/somewhere/neuron --exec-prefix=/somewhere/neuron --libdir=/somewhere/neuron/lib --with-x --with-iv=/somewhere/iv
(I have used these configuration settings on Linux without observing any GUI problems.)
I tried launching nrngui from xterm and from a Terminal window with the same results (i.e., the command prompt starts, but no menubar appears).
Here are the configuration lines I used when building the software (parent directory obviously generalized).
For InterViews:
./configure --prefix=/somewhere/iv --exec-prefix=/somewhere/iv --libdir=/somewhere/iv/lib --with-x
For NEURON:
./configure --prefix=/somewhere/neuron --exec-prefix=/somewhere/neuron --libdir=/somewhere/neuron/lib --with-x --with-iv=/somewhere/iv
(I have used these configuration settings on Linux without observing any GUI problems.)
Found the dvd and to my surpise, when I tried to install it, X11 turned out to be already installed. For OS X 10.4 it must tag along with the xcode installation. Anyway, I do not experience a problem running the gui. I installed with
in neuron/ivx11
./configure --prefix=`pwd`
make
make install
in neuron/nrnx11
../nrn/configure --prefix=`pwd` --with-iv=$HOME/neuron/ivx11 --srcdir=../nrn
make -j 2
make -j 2 install
export PATH=$PATH:/usr/X11R6/bin
startx&
and in the xterm that pops up...
$HOME/neuron/nrnx11/i386/bin/neurondemo
and the x11 windows that pop up work normally.
in neuron/ivx11
./configure --prefix=`pwd`
make
make install
in neuron/nrnx11
../nrn/configure --prefix=`pwd` --with-iv=$HOME/neuron/ivx11 --srcdir=../nrn
make -j 2
make -j 2 install
export PATH=$PATH:/usr/X11R6/bin
startx&
and in the xterm that pops up...
$HOME/neuron/nrnx11/i386/bin/neurondemo
and the x11 windows that pop up work normally.
Thanks for looking into this.
When I built and installed iv/neuron in the manner you described, neither nrngui nor neurondemo displayed the menu interfaces after I started X11. This behavior was consistent regardless of whether I started X11 by clicking on X11.app in the Finder or started it with /usr/X11R6/bin/startx. When I tried accessing my Mac from a Linux box using ssh with X11 forwarding enabled, however, I was able to start nrngui on the Mac and get an interface on the Linux machine's screen. This seems to suggest that neuron is not connecting to the X11 server properly on the Mac, even though no X11 errors are printed and the X11 server is clearly up and running (as confirmed by my ability to run other X11-dependent programs without issue).
Any ideas as to how to debug this?
When I built and installed iv/neuron in the manner you described, neither nrngui nor neurondemo displayed the menu interfaces after I started X11. This behavior was consistent regardless of whether I started X11 by clicking on X11.app in the Finder or started it with /usr/X11R6/bin/startx. When I tried accessing my Mac from a Linux box using ssh with X11 forwarding enabled, however, I was able to start nrngui on the Mac and get an interface on the Linux machine's screen. This seems to suggest that neuron is not connecting to the X11 server properly on the Mac, even though no X11 errors are printed and the X11 server is clearly up and running (as confirmed by my ability to run other X11-dependent programs without issue).
Any ideas as to how to debug this?
I forgot to mention. Make sure you
are using the latest sources from the svn repository or from http://www.neuron.yale.edu/ftp/neuron/versions/alpha/
and that includes the iv-17.tar.gz
If this problem persists those are the
sources that I will add debugging statements to.
are using the latest sources from the svn repository or from http://www.neuron.yale.edu/ftp/neuron/versions/alpha/
and that includes the iv-17.tar.gz
If this problem persists those are the
sources that I will add debugging statements to.
Although I configured, built, and installed iv as you previously described, I can't run idemo because its linking assumes that libUnidrawhines.3.dylib and libIVhines.3.dylib are located in /usr/lib. nrniv, however, correctly assumes that said libraries are where I installed them (i.e., in /tmp/neuron/i686/lib).
I will try building the latest iv and neuron code and let you know what I observe.
I will try building the latest iv and neuron code and let you know what I observe.