LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to install sharedhostffmpeg on a host running redhat linux while not being root? (http://www.linuxquestions.org/questions/linux-general-1/how-to-install-sharedhostffmpeg-on-a-host-running-redhat-linux-while-not-being-root-4175460326/)

georgesjeandenis 05-01-2013 02:54 PM

How to install sharedhostffmpeg on a host running redhat linux while not being root?
 
I'm on a shared host that is running on Red Hat 4.4.7-3.

All these packages have successfully installed: - presetup.sh, autoconf.sh, automake.sh, libtool.sh, libiconv.sh, libpng.sh, libjpeg.sh, zlib.sh, libwmf.sh, freetype.sh, gettext.sh, gd.sh, ruby.sh, flvtool2.sh, lame.sh, codecs.sh, libogg.sh, libvorbis.sh, vorbis-tools.sh, libtheora.sh, amrnb.sh, amrwb.sh, liba52.sh, facc.sh, faad2.sh.

That's exactly all the files just before ffmpeg itself!

I know the error has to do with a library. However, I'm not familiar with libraries. The error message says:

/usr/bin/ld: /home/xxxxx/lib/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /home/xxxxx/lib/libz.a: could not read symbols: Bad value

BUT, when I look at my zlib log file(sharedhostffmpeg.1.0.2.log.15939), no errors show up.

Does anyone know how to recompile with fPIC?

unSpawn 05-01-2013 03:46 PM

Quote:

Originally Posted by georgesjeandenis (Post 4942853)
Does anyone know how to recompile with fPIC?

Run 'export CFLAGS="-fPIC"; export LDFLAGS="-shared";' before you ./configure and recompile Zlib. BTW http://stackoverflow.com/questions/9...ith-fpic-error suggests you may also need "--enable-shared" or "--shared" ./configure switches and if so you probably need to recompile everything if the switches were needed but not added...

georgesjeandenis 05-06-2013 06:54 AM

Thank you so much unSpawn.

I did what you told me to:

export CFLAGS=`-fPIC`
export LDFLAGS=`shared`
+

./configure --prefix=$HOME --enable-shared

in the "zlib.sh" shell script. It seemed to work well.

However this time I get:

cp zlib.h zconf.h /home/xxx/include
chmod 644 /home/xxx/include/zlib.h /home/xxx/include/zconf.h
cp libz.a /lib
cp: cannot create regular file `/lib/libz.a': Read-only file system
make: *** [install] Error 1

I understand a bit :
It's trying to make the libz.a file in the regular script files for the system. But keep in mind that this is a shared host on a web hosting company.
They hosting company don't want to help.

Is their a way to make it create that lib script in another location and still make it work?
And if so, do you know how?

georgesjeandenis 05-06-2013 08:02 AM

People say they solve library issues like mine using symlinks.

Does that make sense?

1 exemple I kept : http://www.linuxquestions.org/questi...-lxext-365646/


All times are GMT -5. The time now is 05:29 AM.