Re: Building G.C.C 4.3.3 on Centos 5.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12 March 2012 09:00, Jonathan Wakely wrote:
> On 12 March 2012 08:25, Moran Smith wrote:
>> /worktable/gcc-4.3.3/configure --program-suffix=-4.3.3
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --disable-nls --with-mpfr=/usr/local
>> --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib
>
> You don't need to use --with-mpfr-include and --with-mpfr-lib here,
> because the --with-mpfr option is present and so the include dir will
> automatically be /usr/local/include and the lib dir will automatically
> by /usr/local/lib


> The most likely explanation is that you need to run ldconfig or use
> some other method such as setting LD_LIBRARY_PATH to ensure the
> runtime linker can find the libraries in /usr/local/lib

Both of these points are documented at
http://gcc.gnu.org/install/configure.html under the --with-mpfr
option:

"Likewise the --with-mpfr=mpfrinstalldir option is shorthand for
--with-mpfr-lib=mpfrinstalldir/lib and
--with-mpfr-include=mpfrinstalldir/include"

"You might also need to ensure the shared libraries can be found by
the dynamic linker when building and using GCC, for example by setting
the runtime shared library path variable (LD_LIBRARY_PATH on GNU/Linux
and Solaris systems). "

Please do read the documentation for the options you're using,
especially when the build doesn't work as you expect.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux