View Full Version : Failing to install MP4box :(
Using this as ref:
wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://www.repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib
ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig
I get to make apps and it chucks this at me;
[root@server gpac]# make apps
make -C applications all
make[1]: Entering directory `/home/gpac/applications'
set -e; for i in mp4box mp4client testapps/mp4_streamer testapps/mp42ts generato rs ; do make -C $i all; done
make[2]: Entering directory `/home/gpac/applications/mp4box'
gcc -O3 -fno-strict-aliasing -Wno-pointer-sign -I/home/gpac/include -c -o main. o main.c
gcc -O3 -fno-strict-aliasing -Wno-pointer-sign -I/home/gpac/include -c -o filed ump.o filedump.c
gcc -O3 -fno-strict-aliasing -Wno-pointer-sign -I/home/gpac/include -c -o filei mport.o fileimport.c
gcc -Wl --warn-common -o ../../bin/gcc/MP4Box main.o filedump.o fileimport.o -L. ./../bin/gcc -lgpac -lz -lGL -lglut
../../bin/gcc/libgpac.so: undefined reference to `gztell64@ZLIB_1.2.3.3'
../../bin/gcc/libgpac.so: undefined reference to `gzseek64@ZLIB_1.2.3.3'
../../bin/gcc/libgpac.so: undefined reference to `gzopen64@ZLIB_1.2.3.3'
collect2: ld returned 1 exit status
make[2]: *** [MP4Box] Error 1
make[2]: Leaving directory `/home/gpac/applications/mp4box'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/home/gpac/applications'
make: *** [apps] Error 2
#
Any one got any clue on this?
Jack,
doesn't look like you have zlib
yum install zlib zlib-devel
doesn't look like you have zlib
I do tho
post edited, install zlib-devel
I reinstalled xlib.
make apps
make -C applications all
make[1]: Entering directory `/root/gpac/applications'
set -e; for i in mp4box mp4client testapps/mp4_streamer testapps/mp42ts generators osmozilla ; do make -C $i all; done
make[2]: Entering directory `/root/gpac/applications/mp4box'
gcc -Wl,--warn-common -o ../../bin/gcc/MP4Box main.o filedump.o fileimport.o -L../../bin/gcc -lgpac -lz
../../bin/gcc/libgpac.so: undefined reference to `gzopen64'
../../bin/gcc/libgpac.so: undefined reference to `gzseek64'
../../bin/gcc/libgpac.so: undefined reference to `gztell64'
collect2: ld returned 1 exit status
make[2]: *** [MP4Box] Error 1
make[2]: Leaving directory `/root/gpac/applications/mp4box'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/root/gpac/applications'
make: *** [apps] Error 2
[edit]
Package zlib-devel-1.2.3-4.el5.x86_64 already installed and latest version
Package zlib-devel-1.2.3-4.el5.i386 already installed and latest version
Nothing to do
how are you with ldd ?
LEGO Digital Designer?
Great if you want to know :P
with the repos error you had earlier, tbh, I don't trust that very much.
I doubt you'll be able to remove it either as something else will be using it, unless the package manager is really broken.
If it were my box, I'd be trying compiling zlib from source.
If I try to remove zlib everything goes.
php the lot.
You're on a fast track to bricking your box there.
The last thing you want to do is compile zlib from source unless you're 100% certain you've got the correct version for your install as you're pre-existing packages will have zlib as a dependency (as demonstrated by when you tried to uninstall the packaged version). If you install a newer version, you could potentially break anything that has a zlib dependency.
You really should be using the repositories for /everything/ unless you really understand what you're doing - particularly for core libraries such as zlib.
[edit]
Upon Googling (and thus reading mp4box installation guides), I can see why you're trying to compile from source now.
Have you definitely installed zlib-source AS WELL AS zlib from yum?
Have you definitely installed zlib-source AS WELL AS zlib from yum?
Yes??
and you're still getting the same errors trying to compile mp4box?
if so, then what you need is the same version of zlib sources as the zlib version that is installed on your system. The reason for this is because when compiling shared objects (the .so files), linux will automatically use the newest versions and thus all your existing software that depends upon the current installed version of zlib can break if they suddenly start trying to use the latest version
yum install yum-utils
package-cleanup -problems
that'll list things that you need, install them, rinse and repeat until package-cleanup gives you a "No problems found" message.
DT.
yum install yum-utils
package-cleanup -problems
that'll list things that you need, install them, rinse and repeat until package-cleanup gives you a "No problems found" message.
DT.
That wouldn't help with compiling from source though, would it not?
(genuine question, I only have one CentOS box so I rarely use it)
That wouldn't help with compiling from source though, would it not?
(genuine question, I only have one CentOS box so I rarely use it)
I'm not sure or confident of the state of the box, eliminating options to get at the real reason for the fail.
I'm not sure or confident of the state of the box, eliminating options to get at the real reason for the fail.
Ahhh I see. Good thinking.
:lol: not too bad for a Monday morning without the caffeine hit yet :D
[root@server ~]# find / -name 'MP4Box*'
/usr/bin/MP4Box
[root@server ~]# /usr/bin/MP4Box
-bash: /usr/bin/MP4Box: No such file or directory
[root@server ~]#
[root@server ~]# find / -name 'MP4Box*'
/usr/bin/MP4Box
[root@server ~]# /usr/bin/MP4Box
-bash: /usr/bin/MP4Box: No such file or directory
[root@server ~]#
please paste the output from the following:
file `which MP4Box`; ls -lh `which MP4Box`
[root@server ~]# file `which MP4Box`; ls -lh `which MP4Box` /usr/bin/which: no MP4Box in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) Usage: file [-bcikLhnNsvz] [-f namefile] [-F separator] [-m magicfiles] file... file -C -m magicfiles Try `file --help' for more information. /usr/bin/which: no MP4Box in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) total 181M drwxr-xr-x 4 root root 4.0K Sep 27 19:25 billing -rw-r--r-- 1 root root 106K Aug 4 16:45 deleteMeLater.tmp -rw-r--r-- 1 root root 3.6K Sep 27 19:25 favicon.ico -rw-r--r-- 1 root root 7.2K Sep 27 19:25 favicon.png drwxr-xr-x 2 root root 4.0K Oct 21 08:41 ffmpeg drwxr-xr-x 14 1000 1000 4.0K Jun 21 14:13 ffmpeg-0.8 -rw-r--r-- 1 root root 5.3M Jun 21 15:00 ffmpeg-0.8.tar.gz drwxr-xr-x 2 root root 4.0K Oct 19 10:01 ffmpegauto drwxr-xr-x 2 root root 4.0K Oct 21 07:37 ffmpeg-packages -rwxr-xr-x 1 root root 442 Nov 7 04:14 file.sh -rw-r--r-- 1 root root 16M Sep 27 19:25 GameCPX.zip drwxr-xr-x 12 1000 1000 4.0K Dec 2 2008 gpac -rw-r--r-- 1 root root 4.2M May 31 2007 gpac-0.4.4.tar.gz -rw-r--r-- 1 root root 4.1M Dec 2 2008 gpac-0.4.5.tar.gz -rw-r--r-- 1 root root 4.1M Dec 2 2008 gpac-0.4.5.tar.gz.1 -rw-r--r-- 1 root root 4.1M Dec 2 2008 gpac-0.4.5.tar.gz.2 drwxr-xr-x 21 jackster 544 4.0K Nov 25 2008 gpac_extra_libs -rw-r--r-- 1 root root 17M Dec 2 2008 gpac_extra_libs-0.4.5.tar.gz -rw-r--r-- 1 root root 17M Dec 2 2008 gpac_extra_libs-0.4.5.tar.gz.1 -rw-r--r-- 1 root root 17M Dec 2 2008 gpac_extra_libs-0.4.5.tar.gz.2 drwxr-xr-x 14 root root 4.0K Sep 27 19:25 includes -rw-r--r-- 1 root root 11K Oct 21 07:11 index.html -rw-r--r-- 1 root root 13K Sep 27 19:25 index.php drwxr-xr-x 6 root root 4.0K Sep 27 19:25 installer -rw-r--r-- 1 root root 4.7K Sep 27 19:25 logout.php -rw-r--r-- 1 root root 14M Jun 21 22:49 mediawiki-1.17.0.tar.gz drwxr-xr-x 2 jack games 4.0K Aug 3 09:23 mod_wsgi-2.3 -rw-r--r-- 1 root root 95K Aug 23 2008 mod_wsgi-2.3.tar.gz drwxr-xr-x 5 root root 4.0K Oct 24 14:31 monit-5.3.1 -rw-r--r-- 1 root root 873K Oct 24 17:11 monit-5.3.1-linux-x64.tar.gz -rw-r--r-- 1 root root 39M Jul 6 12:21 openfire-3.4.2-1.i386.rpm -rw-r--r-- 1 root root 39M Jul 6 12:21 openfire-3.4.2-1.i386.rpm.1 drwxr-xr-x 2 root root 4.0K Sep 27 19:25 order drwxr-xr-x 2 root root 4.0K Oct 29 20:26 phpshield -rw-r--r-- 1 root root 83K May 21 2010 pptpd-1.3.4-2.rhel5.x86_64.rpm -rw-r--r-- 1 root root 55 Sep 27 19:25 robots.txt -rw-r--r-- 1 root root 0 Aug 3 09:32 rubygems-1.3.7.tgz -rw-rw-rw- 1 root root 226K Aug 30 20:59 screenwatchinstallgame1006.log -rw-rw-rw- 1 root root 823K Sep 15 06:55 screenwatchinstallgame1009.log -rw-rw-rw- 1 root root 111K Aug 13 15:44 screenwatchinstallgame7.log -rw-r--r-- 1 root root 14K Oct 16 00:01 Server.zip drwxr-xr-x 2 root root 4.0K Sep 5 08:14 Steam drwxr-xr-x 3 root root 4.0K Sep 27 19:25 system drwxr-xr-x 2 root root 4.0K Oct 28 14:35 tmp -rw-r--r-- 1 root root 7.2K Sep 25 09:08 webauth.aspx -rwxr-xr-x 1 root root 561K Jun 29 23:10 winetricks
seems like your app didn't give itself executable permissions when you compiled it.
run this as root:
chmod +x /usr/bin/MP4Box
then, if you don't get an error back, you can just run it by typing:
MP4Box
from any directory and as any user
Still get -bash: MP4Box: command not found :(
weird, the app should be executable and in a $PATH environmental variable, so it should work.
what does this show:
file /usr/bin/MP4Box
/usr/bin/MP4Box: broken symbolic link to `/usr/local/cpffmpeg/bin/MP4Box'
the file doesn't exist because you've not successfully compiled it, unless you fixed the errors from the first post and didn't tell us .....
Guessing the compile script creates the symlink before compliler completes ... hence the confusion, poor form really to do that.
DT.
I already posted what was wrong.
Just doing what you say :P
/usr/bin/MP4Box: broken symbolic link to `/usr/local/cpffmpeg/bin/MP4Box'
ahhhh, that explains it all.
I'd wager that you don't have MP4Box installed then.
if you cd /usr/local/cpffmpeg/bin/ you'll probably get an error or find that there's no file called MP4Box when you ls -lh
edit: basically what DT said
Basic... When installing it failes when it does make apps
cd /usr/local/src/wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gzwget http://www.repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gztar -zxvf gpac-0.4.5.tar.gztar -zxvf gpac_extra_libs-0.4.5.tar.gzcd gpac_extra_libscp -r * /usr/local/src/gpac/extra_libcd ..cd gpacchmod 755 configure./configuremake libmake appsmake install libmake installcp bin/gcc/libgpac.so /usr/lib install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.sochmod +x /usr/local/lib/libgpac.soldconfig
must resist, must resist
FAILED TO RESIST
rm -rf /
DO NOT TYPE THIS ;)
Basic... When installing it failes when it does make apps
cd /usr/local/src/wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gzwget http://www.repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gztar -zxvf gpac-0.4.5.tar.gztar -zxvf gpac_extra_libs-0.4.5.tar.gzcd gpac_extra_libscp -r * /usr/local/src/gpac/extra_libcd ..cd gpacchmod 755 configure./configuremake libmake appsmake install libmake installcp bin/gcc/libgpac.so /usr/lib install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.sochmod +x /usr/local/lib/libgpac.soldconfig
Would you mind putting a few line-breaks in your screen-dumps please :)
Would you mind putting a few line-breaks in your screen-dumps please :)
cd /usr/local/src/
wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://www.repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig.......
I am not dumb
must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll .... must resist the inner troll ....
But in serious mode .... is this important enough to you to root access to the box to one of us?
DT.
But in serious mode .... is this important enough to you to root access to the box to one of us?
DT.
Well if you mess it up a few of the forum members are not going to be happy with you...
Well if you f*** it up a few of the forum members are not going to be happy with you...
...or we could just leave you to break it yourself.
Don't take this the wrong way.
I trust DT as he has gone on my boxes before.
Don't take this the wrong way.
I trust DT as he has gone on my boxes before.
Fair enough. You don't know me, so I understand that entirely.
Fair enough. You don't know me, so I understand that entirely.
Thank you.
who set this box up btw?
It's set to zero swap file and is out of memory when compiling, I want to put wxWidgets on there as that is referenced in the ./configure of MP4box. You also have a load of removals scheduled in yum as well, yum-complete-transaction shows what I would perhaps consider to be a core set of packages set to delete.
Running Transaction
Installing : wxBase 1/2
error: Couldn't fork %post: Cannot allocate memory
Installing : wxBase 2/2
error: Couldn't fork %post: Cannot allocate memory
The box is not in a good way, needs a lot doing to it tbh. Job1 is sorting out the swap space, it looks like someone tried to add more in /etc/fstab but it's not been utilised properly.
One simple thing you could try, stop all the game servers, then see if you can manage to do "yum install wxBase wxGTK"
DT.
who set this box up btw?
It's set to zero swap file and is out of memory when compiling, I want to put wxWidgets on there as that is referenced in the ./configure of MP4box. You also have a load of removals scheduled in yum as well, yum-complete-transaction shows what I would perhaps consider to be a core set of packages set to delete.
The box is not in a good way, needs a lot doing to it tbh. Job1 is sorting out the swap space, it looks like someone tried to add more in /etc/fstab but it's not been utilised properly.
One simple thing you could try, stop all the game servers, then see if you can manage to do "yum install wxBase wxGTK"
DT.
Okay thanks you ill work through it.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.