LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 风尘浪人

小弟看了巨多帖子..仍然不知道mplayer怎么编译...哪个高手过来详细的讲一下.....现

[复制链接]
发表于 2005-1-24 12:24:16 | 显示全部楼层
Post by 44463616
warning: apt-0.5.5cnc6-fr1.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
        librpm-4.2.so is needed by apt-0.5.5cnc6-fr1.i386
        librpmdb-4.2.so is needed by apt-0.5.5cnc6-fr1.i386
        librpmio-4.2.so is needed by apt-0.5.5cnc6-fr1.i386
出现这个了..怎么办啊


哦,rpm需先升级,到此找,装上3个东东:

http://rpm.pbone.net

然后:

rpm -Uvh ******装上
回复 支持 反对

使用道具 举报

发表于 2005-1-24 13:48:10 | 显示全部楼层
我的最后出现了这样的信息
----------------------
[root@localhost root]# apt-get install mplayer
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  aalib alsa-lib faad2 lame libdv libdvdcss libdvdread libfame libmad
  libpostproc lirc lzo mplayer-fonts
The following NEW packages will be installed:
  aalib alsa-lib faad2 lame libdv libdvdcss libdvdread libfame libmad
  libpostproc lirc lzo mplayer mplayer-fonts
0 packages upgraded, 14 newly installed, 0 removed and 226 not upgraded.
Need to get 217kB/9095kB of archives.
After unpacking 26.4MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ayo.freshrpms.net redhat/9/i386/freshrpms aalib 1.4rc5-3.fr [217kB]Fetched 217kB in 34s (6373B/s)
Executing RPM (-Uvh)...
warning: /var/cache/apt/archives/aalib_1.4rc5-3.fr_i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing...                ########################################### [100%]
   1:aalib                  ########################################### [  7%]
   2:alsa-lib               ########################################### [ 14%]
   3:faad2                  ########################################### [ 21%]
   4:lame                   ########################################### [ 29%]
   5:libdv                  ########################################### [ 36%]
   6:libdvdcss              ########################################### [ 43%]
   7:libdvdread             ########################################### [ 50%]
   8:libfame                ########################################### [ 57%]
   9:libpostproc            ########################################### [ 64%]
  10:lirc                   ########################################### [ 71%]
  11:lzo                    ########################################### [ 79%]
  12:libmad                 ########################################### [ 86%]
  13:mplayer-fonts          ########################################### [ 93%]
  14:mplayer                ########################################### [100%]
---------------------
应该是安装成功了吧!
只能听下载的MP3,网上的电影怎么看不成呢?
回复 支持 反对

使用道具 举报

发表于 2005-1-24 14:08:38 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2005-1-24 14:22:23 | 显示全部楼层
能不能静态编译,以后拷贝过去就可以用了,可以么?
gcc -static ?
回复 支持 反对

使用道具 举报

发表于 2005-1-24 14:45:32 | 显示全部楼层
我用的是REDHATLINUX9,没有我适合的,所以就下载了

Source Code         mplayerplug-in-2.75.tar.gz


进行安装的 时候出现了下列错误

-----------------------------

[root@localhost mplayerplug-in]# ls
ChangeLog      extras               mplayerplug-in.types  Source
common         include              np_entry.o            specfiles
config.h       INSTALL              npn_gate.o            sysinstall.sh
config.h.in    install.sh           npp_gate.o            TODO
config.log     LICENSE              nsScriptablePeer.o    uninstall.sh
config.status  Makefile             pixmaps               whatoptions.sh
configure      Makefile.in          plugingate
configure.in   mplayerplug-in.conf  plugin.o
DOCS           mplayerplug-in.spec  README
[root@localhost mplayerplug-in]# ./configure
checking for g++... g++
checking for C++ compiler default output file name... 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 g++ accepts -g... yes
checking for gcc... gcc
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 a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for pkg-config... /usr/bin/pkg-config
checking for mozilla-plugin... yes
checking MOZPLUG_CFLAGS... -I/usr/include/mozilla-1.2.1/java -I/usr/include/mozilla-1.2.1/plugin -I/usr/include/mozilla-1.2.1/xpcom -I/usr/include/mozilla-1.2.1/string -I/usr/include/mozilla-1.2.1/nspr
checking MOZPLUG_LIBS... -L/usr/lib/mozilla-1.2.1 -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
checking for gtk+-2.0... yes
checking GTK_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GTK_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for gthread-2.0... yes
checking GTHREAD_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GTHREAD_LIBS... -pthread -lgthread-2.0 -lglib-2.0
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking X11/StringDefs.h usability... yes
checking X11/StringDefs.h presence... yes
checking for X11/StringDefs.h... yes
checking for sys/stat.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for pid_t... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strrchr... yes
checking for snprintf... yes
checking for mkfifo... yes
checking for dup2... yes
checking for gettimeofday... yes
checking for strerror... yes
checking for strtol... yes
checking for memmem... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking return type of signal handlers... void
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for DPMSQueryExtension in -lXdpms... no
checking for X11/extensions/dpms.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
[root@localhost mplayerplug-in]# make
g++ -c -Wall -g -O2  -I/usr/X11R6/include  -g -O2  -DXP_UNIX -DMOZ_X11 -I/usr/include/mozilla-1.2.1/java -I/usr/include/mozilla-1.2.1/plugin -I/usr/include/mozilla-1.2.1/xpcom -I/usr/include/mozilla-1.2.1/string -I/usr/include/mozilla-1.2.1/nspr   -I/usr/include/mozilla-1.2.1 -Iinclude -fPIC  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DGTK2_ENABLED -DGTK_ENABLED  Source/plugin-support.cpp
Source/plugin-support.cpp: In function `int toolkitOk(NPP_t*, int*, int*)':
Source/plugin-support.cpp:566: `NPNVToolkit' undeclared (first use this
   function)
Source/plugin-support.cpp:566: (Each undeclared identifier is reported only
   once for each function it appears in.)
make: *** [plugin-support.o] Error 1
[root@localhost mplayerplug-in]# make install
g++ -c -Wall -g -O2  -I/usr/X11R6/include  -g -O2  -DXP_UNIX -DMOZ_X11 -I/usr/include/mozilla-1.2.1/java -I/usr/include/mozilla-1.2.1/plugin -I/usr/include/mozilla-1.2.1/xpcom -I/usr/include/mozilla-1.2.1/string -I/usr/include/mozilla-1.2.1/nspr   -I/usr/include/mozilla-1.2.1 -Iinclude -fPIC  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DGTK2_ENABLED -DGTK_ENABLED  Source/plugin-support.cpp
Source/plugin-support.cpp: In function `int toolkitOk(NPP_t*, int*, int*)':
Source/plugin-support.cpp:566: `NPNVToolkit' undeclared (first use this
   function)
Source/plugin-support.cpp:566: (Each undeclared identifier is reported only
   once for each function it appears in.)
make: *** [plugin-support.o] Error 1
--------------------
请高手帮助!谢谢了
回复 支持 反对

使用道具 举报

发表于 2005-1-24 14:57:09 | 显示全部楼层
或许是我用的版本不对,,,,,,,

我的系统是redhatlinux9.2的,,,,,,,,,,,不知道应该安装那一种版本呢?

-------------------------------
    mplayerplug-in-2.70-fc2.i386.rpm        113013         12029         i386        .rpm
    mplayerplug-in-2.70-fc2.src.rpm        178614         552         Platform-Independent        Source .rpm
    mplayerplug-in-2.70-rhel3.i386.rpm        108705         3059         i386        .rpm
    mplayerplug-in-2.70-rhel3.src.rpm        173453         165         Platform-Independent        Source .rpm
    mplayerplug-in-2.70.tar.gz
回复 支持 反对

使用道具 举报

发表于 2005-1-24 15:03:18 | 显示全部楼层
下这2.75的rpm包,哪个版本都行。
右击,用”归档管理器“打开,点解压缩,得一个usr和一个etc文件夹。

把etc里面的两文件复制到/etc下,把usr/lib/firefox/components中的文件mplayerplug-in.xpt复制到/usr/lib/firefox中的components文件夹中,usr/lib/firefox/plugins/mplayerplug-in.so复制到/usr/lib/firefox/plugins中
回复 支持 反对

使用道具 举报

发表于 2005-1-24 15:06:03 | 显示全部楼层
谢谢ogog!

请问那我前面安装的那些怎么删除呢?
回复 支持 反对

使用道具 举报

发表于 2005-1-24 15:11:07 | 显示全部楼层
还没装上呢,要不可到/usr/src/看看。
回复 支持 反对

使用道具 举报

发表于 2005-1-24 15:19:30 | 显示全部楼层
不好意思,我太菜,怎么就 就是没有从右键打开方式里找到::"归档管理器"

希望能指点下!

麻烦了,,,,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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