Hi ,
I am trying to install Mono on RedHat 5.11. Here are some details of the mono that we are trying to install.
Downloaded from :
http://download.mono-project.com/sources/mono/mono-3.12.0.tar.bz2Mono version : 3.12
Steps to install it:1. ./configure --prefix=/opt/mono
2. make && make install
We could install it on CentOS but installing it on RedHat is creating following issue,
----------------------------------------
/usr/bin/ld: ./.libs/libmini.a(libmini_la-mini.o): relocation R_X86_64_PC32 against `mono_cross_helpers_run' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
---------------------------------------
Searched around it and found below link,
http://stackoverflow.com/questions/13812185/how-to-recompile-with-fpic
To solve this issue I ran it with -fPIC option but then realized that -fPIC option does not work with RedHat
so used '-pie' option. So I did following,
1. ./configure --enable-shared --prefix=/opt/mono
2. make -pie
3. make install
But still I am facing the some issue.
/usr/bin/ld: ./.libs/libmini.a(libmini_la-mini.o): relocation R_X86_64_PC32 against `mono_cross_helpers_run' can not be used when making a shared object; recompile with -fPIC
Could someone please help me on this?
Thanks,
Raja