Installing Neuron

Post Reply
tsa
Posts: 31
Joined: Mon Mar 26, 2007 12:44 pm

Installing Neuron

Post by tsa »

Hello,

I'm trying to install InterViews and Neuron on a 64bit Mandriva system.
Compiling InterViews from source code as the instructions indicate is
successful up until I attempt to 'make' the InterViews program at which point I get the following error:

mkdir .libs
g++ -g -O2 -o .libs/idraw idarrow.o idarrowhead.o idarrows.o idcatalog.o
idcmds.o idcomp.o idcreator.o
iddialogs.o ided.o idkybd.o idvars.o main.o ../../lib/.libs/libUnidrawhines.so ../../lib/.libs/libIVhines.so
/usr/lib/libXext.so /usr/lib/libX11.so
/usr/lib/libXdmcp.so -ldl /usr/lib/libXau.so -lm -Wl,--rpath -Wl,/usr/local/iv/x86_64/lib
/usr/lib/libXext.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [idraw] Error 1

Additionally earlier in the make process I recieve the following error
multiple times but the make process is not stopped:

TIFF/tif_write.c:402: warning: incompatible implicit declaration of
built-in function ‘bzero’

Any suggestsions would be greatly appreciated.
hines
Site Admin
Posts: 1687
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

The problem is that you are linking a mixture of 32bit and 64bit libraries. This is probably due to a bad installation of X11 on your machine. Do you have the directory:
/usr/X11R6/lib64
When I build InterViews the last link line is

Code: Select all

g++ -g -O2 -o .libs/idraw idarrow.o idarrowhead.o idarrows.o idcatalog.o idcmds.o idcomp.o idcreator.o iddialogs.o ided.o idkybd.o idvars.o main.o  ../../lib/.libs/libUnidrawhines.so -L/usr/X11R6/lib64 ../../lib/.libs/libIVhines.so -lX11 -lXext -lm -Wl,--rpath -Wl,/home/hines/neuron/iv/x86_64/lib
You might also check the output when you launched configure. Was there any
complaint about x11?
tsa
Posts: 31
Joined: Mon Mar 26, 2007 12:44 pm

Post by tsa »

We installed the full complement of 54bit X11 libraries which created a /usr/lib64 directory but not /usr/X11R6/lib64 so we linked the lib64 directory to X11R6

It turns out configure did not find x11 or the g77 fortran compiler. After installing g77 the configure actually has gotten worse resulting in multiple warning files such as

WARNING: sys/dlfcn.h present cannot be compiled
WARNING: sys/fcntl.h present cannot be compiled
WARNING: sys/file.h present cannot be compiled
WARNING: sys/ioctl.h present cannot be compiled
WARNING: sys/time.h present cannot be compiled
WARNING: sys/select.h present cannot be compiled
WARNING: sys/mman.h present cannot be compiled
WARNING: sys/stropts.h present cannot be compiled
etc
hines
Site Admin
Posts: 1687
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

we linked the lib64 directory to X11R6
This might be a mistake and ended up causing the succeeding errors. There really is supposed to be a /usr/lib64 directory with many files and directories involving non-x11 related libraries. In fact one entry on my machine in /usr/lib64 is:
lrwxrwxrwx 1 root root 18 Jun 29 2006 X11 -> ../X11R6/lib64/X11
Post Reply