[Insight-developers] cmake on solaris8
Luis Ibanez
luis.ibanez@kitware.com
Fri, 03 May 2002 19:58:56 -0400
Hi Lydia,
Usually you dont need to set the LD_LIBRARY_PATH.
Any need for doing that will indicate that the
compiler is not installed correctly on this machine.
However you may need to set the CC and CXX environment
variable before running "configure" in order to make sure
that you use the right compiler.
I use to set CXX = g++ and CC = gcc
Have you tried to compile a minimum C++ program on this
machine. If is failing to get the C++ std library it
should fail for any C++ code using for example "std::cout",
not just with CMake...
Luis
==========================================
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
>
>