Re: 强烈推荐:Goldendict 及其词典详述(4 月 24 日更新)
发表于 : 2010-05-17 21:04
顶起 

最近的git源码更改了目录结构:A_J19 写了::~/goldendict$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: 源码包 goldendict
dpkg-buildpackage: 源码版本 0.9.1~git20100424
dpkg-buildpackage: 源码修改者 Vikram Dhillon <dhillonv10@gmail.com>
dpkg-buildpackage: 主机架构 i386
fakeroot debian/rules clean
test -x debian/rules
dh_testroot
rmdir src
rmdir: 删除 “src” 失败: 目录非空
make: [cleanbuilddir] 错误 1 (忽略)
/usr/bin/make -C src -k distclean
make[1]: 正在进入目录 `/home/lsj/goldendict/src'
make[1]: *** 没有规则可以创建目标“distclean”.
make[1]:正在离开目录 `/home/lsj/goldendict/src'
make: [makefile-clean] 错误 2 (忽略)
rm -f debian/stamp-makefile-build
dh_clean
rm -f src/Makefile src/.qmake.internal.cache
/usr/bin/make -f debian/rules reverse-config
make[1]: 正在进入目录 `/home/lsj/goldendict'
make[1]: 没有什么可以做的为 `reverse-config'。
make[1]:正在离开目录 `/home/lsj/goldendict'
if [ "reverse-patches" = "reverse-patches" ]; then rm -f debian/stamp-patched; fi
patches: debian/patches/desktop.category.patch debian/patches/disable_unneed_control.patch debian/patches/goldendict-wordnet.path.patch debian/patches/instdir.patch
Trying reverse patch debian/patches/instdir.patch at level 1 ... 0 ... success.
Trying reverse patch debian/patches/goldendict-wordnet.path.patch at level 1 ... success.
Trying reverse patch debian/patches/disable_unneed_control.patch at level 1 ... 0 ... success.
Trying reverse patch debian/patches/desktop.category.patch at level 1 ... 0 ... success.
if [ "reverse-patches" != "reverse-patches" ]; then touch debian/stamp-patched; fi
if [ "reverse-patches" != "reverse-patches" ] ; then \
/usr/bin/make -f debian/rules update-config ; \
fi
for dir in debian/patches ; do \
rm -f $dir/*.log ; \
done
rm -f debian/goldendict.1
dpkg-source -b goldendict
dpkg-source: info: using source format `1.0'
dpkg-source: 警告: source directory 'goldendict' is not <sourcepackage>-<upstreamversion> 'goldendict-0.9.1~git20100424'
dpkg-source: info: building goldendict in goldendict_0.9.1~git20100424.tar.gz
dpkg-source: info: building goldendict in goldendict_0.9.1~git20100424.dsc
debian/rules build
test -x debian/rules
mkdir -p "src"
/usr/bin/make -f debian/rules reverse-config
make[1]: 正在进入目录 `/home/lsj/goldendict'
make[1]: 没有什么可以做的为 `reverse-config'。
make[1]:正在离开目录 `/home/lsj/goldendict'
if [ "debian/stamp-patched" = "reverse-patches" ]; then rm -f debian/stamp-patched; fi
patches: debian/patches/desktop.category.patch debian/patches/disable_unneed_control.patch debian/patches/goldendict-wordnet.path.patch debian/patches/instdir.patch
Trying patch debian/patches/desktop.category.patch at level 1 ... 0 ... success.
Trying patch debian/patches/disable_unneed_control.patch at level 1 ... 0 ... success.
Trying patch debian/patches/goldendict-wordnet.path.patch at level 1 ... success.
Trying patch debian/patches/instdir.patch at level 1 ... 0 ... success.
if [ "debian/stamp-patched" != "reverse-patches" ]; then touch debian/stamp-patched; fi
if [ "debian/stamp-patched" != "reverse-patches" ] ; then \
/usr/bin/make -f debian/rules update-config ; \
fi
make[1]: 正在进入目录 `/home/lsj/goldendict'
make[1]: 没有什么可以做的为 `update-config'。
make[1]:正在离开目录 `/home/lsj/goldendict'
cd src && qmake-qt4 'QMAKE_CC = cc' 'QMAKE_CXX = g++' 'QMAKE_CFLAGS_RELEASE = -g -O2 -g -Wall -O2' 'QMAKE_CXXFLAGS_RELEASE = -g -O2 -g -Wall -O2'
Project ERROR: Repository moved to Gitorious. Sorry for the trouble, we promise it's the last transition! The new url is git://gitorious.org/goldendict/goldendict.git
make: *** [src/Makefile] 错误 2
dpkg-buildpackage: 错误: debian/rules build 提供错误退出状态 2
求解...谢谢...
我觉得,没必要生成deb包,直接编译安装就好。ikm pushed ab88fa48 to goldendict/goldendict:master
on May 15, 2010 12:42
Drop the src/ directory. It's superfluous.
代码: 全选
$ git clone git://gitorious.org/goldendict/goldendict.git
$ cd goldendict && qmake && make
$ sudo make install
请参考更新后的首贴。A_J19 写了: make: *** [src/Makefile] 错误 2
dpkg-buildpackage: 错误: debian/rules build 提供错误退出状态 2
求解...谢谢...
看到那刺眼的 "fatal"没?这儿已经出错了,执行 "git clone" 之前,请先删去 goldendict 和 goldendict_bak 目录,再按安装篇第 2, 3 点做一次,刚首贴中更新作了说明。注意,此命令成功执行一次就够了,以后要升级直接奔安装篇第 5 点去就成了。zzd@ubuntu 写了:zhouzd@zhouzd-laptop:~$ git clone git://gitorious.org/goldendict/goldendict.git
fatal: destination directory 'goldendict' already exists.
这两个错误是因为你用的 ubuntu 的版本太老,至少是 9.04 或更早,源里没有相应的软件包。解决办法除升级系统以外只有利用 ppa 源,前面的贴子我回答过一相同问题,自个儿找找吧。zzd@ubuntu 写了:zhouzd@zhouzd-laptop:~/goldendict$ sudo apt-get build-dep goldendict
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for golden
zhouzd@zhouzd-laptop:~/goldendict$ sudo apt-get install libqt4-phonon-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libqt4-phonon-dev
我记得当时应该是在 ru-board 上找到的。未成仙 写了:找大英百科
不果
恳请前辈不吝赐教