I'm getting the following error while trying to install mp4box and running the make lib command.
在尝试安装mp4box并运行make lib命令时,我得到了以下错误。
/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status
make[1]: *** [libgpac.so] Error 1
make[1]: Leaving directory `/gpac/src'
make: *** [lib] Error 2
After I check the libraries that's what I get:
在我检查了图书馆之后,我得到了:
lrwxrwxrwx 1 root root 13 Feb 15 18:25 libGL.so -> mesa/libGL.so
-rw-r--r-- 1 root root 905952 Aug 23 2011 libGLU.a
lrwxrwxrwx 1 root root 11 Feb 15 18:26 libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root 20 Feb 15 18:25 libGLU.so.1 -> libGLU.so.1.3.071000
-rw-r--r-- 1 root root 453272 Aug 23 2011 libGLU.so.1.3.071000
baseem@348588:/usr/lib$ ln -s libGLU.so.1.3.071000 libGL.so
ln: creating symbolic link `libGL.so': File exists
Note: I'm a total newb in linux so please take that into consideration! Thanks a lot!
注意:我在linux中是一个全新的b,所以请考虑这个问题!谢谢!
2 个解决方案
#1
15
You're going to need an implementation of GLUT. The easiest one to get is FreeGLUT:
你将需要一个过剩的实施。最容易得到的是FreeGLUT:
sudo apt-get install freeglut3 freeglut3-dev
#2
0
I was running on the same problem when i was trying to install MP4Box then i found the solution.
当我试图安装MP4Box时,我遇到了同样的问题,于是我找到了解决方案。
first of all check to see if your configuration file produce any errors. for example (permission denied error) : in this case you need to change the TMPDIR1 line in your configure file (line 7 before fi) to the following:
首先检查您的配置文件是否产生错误。例如(允许被拒绝的错误):在本例中,您需要将配置文件中的TMPDIR1行(在fi之前的第7行)更改为以下内容:
TMPDIR1=/usr/local/src
then you need to install glut using this command :
然后,您需要使用以下命令安装过量:
yum install glut-devel
now if you run the following command
现在,如果您运行以下命令。
ls /usr/lib64 |grep glut
you will se that you have libglut.so (if you cant libglut.so@ you need to create symbolic link to it) then everything should work properly
你会发现你有lib过剩。所以(如果你不能喝过量的话)。你需要创建符号链接,然后一切都应该正常工作。
#1
15
You're going to need an implementation of GLUT. The easiest one to get is FreeGLUT:
你将需要一个过剩的实施。最容易得到的是FreeGLUT:
sudo apt-get install freeglut3 freeglut3-dev
#2
0
I was running on the same problem when i was trying to install MP4Box then i found the solution.
当我试图安装MP4Box时,我遇到了同样的问题,于是我找到了解决方案。
first of all check to see if your configuration file produce any errors. for example (permission denied error) : in this case you need to change the TMPDIR1 line in your configure file (line 7 before fi) to the following:
首先检查您的配置文件是否产生错误。例如(允许被拒绝的错误):在本例中,您需要将配置文件中的TMPDIR1行(在fi之前的第7行)更改为以下内容:
TMPDIR1=/usr/local/src
then you need to install glut using this command :
然后,您需要使用以下命令安装过量:
yum install glut-devel
now if you run the following command
现在,如果您运行以下命令。
ls /usr/lib64 |grep glut
you will se that you have libglut.so (if you cant libglut.so@ you need to create symbolic link to it) then everything should work properly
你会发现你有lib过剩。所以(如果你不能喝过量的话)。你需要创建符号链接,然后一切都应该正常工作。