分类: LINUX
2010-12-29 09:06:47
经过验证,网络上大多数说的各种库的下载目录说的都不对,因而安装后发现启动不了,原因是库文件没有被下载,正确的下载路径应该是:
ftp://ftp.debian.org/debian/pool/main/k/kdebase/;
修改后的脚本如下,各位朋友复制过去应该能够完成下载。
#!/bin/bash
# This script helps you install Kscope on Ubuntu10.04.
# You can also use it to fix "Kscope doesn't run in KDE4" bug.
echo "Determining machine hardware name... "
MACHINE=`uname -m`
case "$MACHINE" in
i386 | i586 | i686)
ARCH="i386"
;;
x86_64)
ARCH="amd64"
;;
*)
ARCH="i386"
;;
esac
# If Kscope is not installed, install it.
which kscope &> /dev/null
if [ $? -ne 0 ]; then
echo "Installing kscope..."
sudo apt-get install kscope || \
wget {ARCH}.deb && \
sudo dpkg -i kscope_*.deb || \
sudo apt-get -fy install || \
echo "Oops, some error happens..."
fi
kscope -v &> /dev/null
if [ $? -eq 0 ]; then
echo "Kscope works fine."
exit
fi
echo "Downloading KDE3 libraries needed by kscope..."
#wget {ARCH}.deb
wget ftp://ftp.debian.org/debian/pool/main/k/kdebase/kate_3.5.9.dfsg.1-6+lenny1_${ARCH}.deb
dpkg -x kate_3*.deb kate
echo "Installing KDE3 libraries..."
sudo cp kate/usr/lib/libkateinterfaces.so.0.0.0 /usr/local/lib/
sudo cp kate/usr/lib/libkateutils.so.0.0.0 /usr/local/lib
sudo ln -s /usr/local/lib/libkateinterfaces.so.0.0.0 /usr/local/lib/libkateinterfaces.so.0
sudo ln -s /usr/local/lib/libkateutils.so.0.0.0 /usr/local/lib/libkateutils.so.0
sudo ldconfig
echo "Finished."