[Insight-developers] cmake on solaris8

Stephen R. Aylward aylward@unc.edu
Fri, 03 May 2002 18:34:54 -0400


I am guessing it is an LD_LIBRARY_PATH problem.  You need to make sure 
the runtime (.so) library libstdc++.so.2.10.0 is being found.

See if your .cshrc defines an environment variable LD_LIBRARY_PATH.   If 
so, find where the libstdc... file is on your system (probably in some 
g++ subdir somewhere under /usr/lib or /usr/local/lib or /opt/GNU/...

If not, find out what you current LD_LIBRARY_PATH is, and define it with 
the extra directory in your .cshrc file.

I dunno how well you know unix....does this help, or is this still too 
cryptic?

s

Lydia Ng wrote:

> Dear All,
> 
> I am having some problems building cmake on solaris8.
> 
> This is what I did:
> 
> [1] Downloaded CMake1.2-src-unix.tar.Z from 
> www.cmake.org/HTML/Download.html
> 
> [2] Cd into the CMake1.2 direcory
> 
> [3] ran "./configure" and got the following error message
> 
> c++ cmake.o cmakewizard.o cmakemain.o cmMakeDepend.o cmMakefile.o
> cmMakefileGenerator.o cmRegularExpression.o cmSourceFile.o
> cmSystemTools.o cmDirectory.o cmUnixMakefileGenerator.o cmCommands.o
> cmTarget.o cmCustomCommand.o cmCacheManager.o cmCableClassSet.o
> cmListFileCache.o cmSourceGroup.o
> -DCMAKE_ROOT_DIR='"/a/homer/users/lng/cmake-1.2-solaris8"' -g -O2
> -DCMAKE_HAS_AUTOCONF -I/a/homer/users/lng/cmake-1.2-solaris8/Source  -o
> cmake
> gmake[1]: Leaving directory
> `/a/homer/users/lng/cmake-1.2-solaris8/Source'
> ld.so.1: ./Source/cmake: fatal: libstdc++.so.2.10.0: open failed: No
> such file or directory
> Killed
> gmake: *** No rule to make target `depend'.  Stop.
> 
> Questions for the gurus:
> ==========================
> 
> (a) Is this a problem with the way the gcc is installed or is it a path
> problem?
> 
> (b) I know if I fiddle with my LD_LIBRARY_PATH to include /usr/local/lib
> then 
> everything is okay. Somehow I don't think this is the right thing to do?
> Searching on the web, the general consenus is that fiddling with
> LD_LIBRARY_PATH
> is BAD.
> 
> Does someone know what the problem might be?
> 
> Other useful information:
> durian:/a/homer/users/lng/cmake-1.2-solaris8/Source[29] uname -a
> SunOS durian 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-60
> durian:/a/homer/users/lng/cmake-1.2-solaris8/Source[30] c++ -v
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
> 
> 
> Thanks,
> Lydia
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
> 


-- 
===============================================
Dr. Stephen R. Aylward
Assistant Professor of Radiology
Adjunct Assistant Professor of Computer Science
http://caddlab.rad.unc.edu
aylward@unc.edu
(919) 966-9695