LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 721|回复: 7

关于tar安装的问题

[复制链接]
发表于 2004-11-29 12:49:20 | 显示全部楼层 |阅读模式
今天下载了一个vlc-0.8.1.tar.gz媒体播放器
解压tar zxf vlc-0.8.1.tar.gz之后
然后./configure ;make;make install

[root@liupeng vlc-0.8.1]# ./configure ;make;make install
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
有好长一串安装好之后怎么运行这个软件啊
发表于 2004-11-30 00:37:54 | 显示全部楼层
Be cautious, you should only login as root for administrative works.  As a rule of thumb, you should compile the package by a normal user and then install it as root. i.e.

As normal user:
$./configure && make

As root:
#make install

I haven't used vlc before but as it uses automake, the installation should be generic.  If you do not specify --prefix in ./configure, the default prefix (installation path) is usually /usr/local.  As a result, your compiled binaries should be installed to /usr/local/bin

So, type:

cd /usr/local/bin
ls -thr

You should able to see the latest binary (or binaries) at the bottom.  I think it is something like vlc or vlc-xxxxxx.

If /usr/local/bin is already in your search PATH, then you can run vlc in any directory.

Clear?
 楼主| 发表于 2004-11-30 11:54:54 | 显示全部楼层
上面这位兄弟,我的英语不太好
不过你的意思我基本能看懂,让我再试一次
thank you!
 楼主| 发表于 2004-11-30 13:26:09 | 显示全部楼层
我改变了INSTALL的权限
运行它,但是又出现一个问题
checking mad.h usability... no
checking mad.h presence... no
checking for mad.h... no
configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.
./INSTALL: line 46: unexpected EOF while looking for matching `''
./INSTALL: line 68: syntax error: unexpected end of file
发表于 2004-11-30 16:28:03 | 显示全部楼层
缺库
 楼主| 发表于 2004-11-30 18:08:42 | 显示全部楼层
是不是要完全安装啊?
发表于 2004-11-30 23:28:15 | 显示全部楼层
It also says:

Alternatively you can use --disable-mad to disable the mad plugin.

i.e. you can do add --disable-mad to configure, I mean

./configure --disable-mad

So, either install the mad package prior to vlc, or disable the mad plugin during configure.
发表于 2004-12-1 07:17:56 | 显示全部楼层
楼上的给的详细解法,我的太笼统了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表