* sorry to trouble, but I have no idea about this
@ 2009-04-28 13:58 jerry zhai
2009-04-28 15:00 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: jerry zhai @ 2009-04-28 13:58 UTC (permalink / raw)
To: gcc-help
Dear SIr,
I want to install gcc 4.3.3 on my linux for myself only, but I don't
have root permission. I followed the install guide, but the problem
seemed weird.
my os is redhat enterprise for smp, the kernel version is 2.4.21
machine type is AMD Operon, x86_64
--------------------
before installing gcc, I had my own gmp 4.2.1 and mpfr 2.3.0 installed
at location $HOME/lib/gmp and $HOME/lib/mpfr. Besides, I had a
system gmp library located in /usr/lib, and the gcc in /usr/bin is gcc
3.2.3
then I checked out gcc_4_3_3_release from the gnu svn server
after the source files extracted, I did following steps:
gcc> mkdir tmp
gcc> cd tmp
gcc> ../configure --prefix=$HOME/work/ --with-gmp=$HOME/lib/gmp
--with-mpfr=$HOME/lib/mpfr --enable-languages=c,c++,fortran
gcc> make
gcc> make install
I finished the make step successfully, but I didn't perform check step
since I don't have autogen on my system. That's not the critical
problem I think,( or perhaps it is actually, who knows). Then I edited
the .cshrc under $HOME to set the LD_LIBRARY_PATH, I set it to be
$HOME/work/lib, and verified.
The problem troubled me most was: cc1 kept reporting errors --- error
while loading shared libraries: libmpfr.so.1: cannot open shared
object file: No such file or directory
This happened once during make stage, cc1 in source directory refused
to work, reporting exactly the same problem above. I tried to set
LD_LIBRARY_PATH to be $HOME/lib/mpfr/lib and it worked and compiled!
However, this trick failed to make the installed gcc work.
I checked the library dependency of cc1 with ldd, and found
libmpfr.so.1 points to null, and libgmp points to the system gmp
library! I don't know what's wrong since I did throw the flag
--with-gmp and --with-mpfr.
--------------------
plz help me, I would attach any install log if u would like to see.
thanks a bunch !
yours, Jerry
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sorry to trouble, but I have no idea about this
2009-04-28 13:58 sorry to trouble, but I have no idea about this jerry zhai
@ 2009-04-28 15:00 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2009-04-28 15:00 UTC (permalink / raw)
To: jerry zhai; +Cc: gcc-help
jerry zhai <jerry.z.mystery@gmail.com> writes:
> before installing gcc, I had my own gmp 4.2.1 and mpfr 2.3.0 installed
> at location $HOME/lib/gmp and $HOME/lib/mpfr.
When you build gmp and mpfr, use --disable-shared when you configure
them. That will avoid this problem:
> The problem troubled me most was: cc1 kept reporting errors --- error
> while loading shared libraries: libmpfr.so.1: cannot open shared
> object file: No such file or directory
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-28 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 13:58 sorry to trouble, but I have no idea about this jerry zhai
2009-04-28 15:00 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).