1 使用ubuntu 10.10
需要更新源 由於教育網 還是用中科大的吧
/etc/apt/sources.list (完全覆蓋這個檔案的內容)
deb http://debian.ustc.edu.cn/ubuntu/ natty main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ natty-backports main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ natty-security main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ natty-updates main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ natty main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
這個源不錯。。。。。
apt-get update
apt-get dist-upgrade
2 此時你可能遇到下面這個錯誤
正在設定 python2.7-minimal (2.7.1-5ubuntu2.2) ...
Linking and byte-compiling packages for runtime python2.7...
E: pycompile:240: Requested versions are not installed
dpkg:處理 python2.7-minimal (--configure)時出錯:
子進程 已安裝 post-installation 指令碼 返回了錯誤號碼 3
在處理時有錯誤發生:
python2.7-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
在提示出錯後,修改 /usr/share/python/runtime.d/public_modules.rtinstall ,注釋掉所有的內容,
然後 apt-get -f install
待正常後,再執行一次 pycompile -V 2.7 /usr/lib/python2.7/dist-packages 就行了
3 apt-get install libz-dev
4 apt-get install autoconf
5 此時ubuntu10會說 autoconf版本不夠,請下載autoconf 2.68包自行編譯安裝
6 apt-get install libtool
7 apt-get install gtk-doc-tools libfuse-dev libjson0-dev libcurl4-nss-dev
8 安裝
liboauth-0.9.5下載安裝
./configure
--enable-nss --with-curltimeout
make
make
install
9 出現這個問題
checking
for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
checking for GLIB2... configure: error: Package requirements (
glib-2.0 >= 2.18
) were not met:
No package 'glib-2.0' found
解決方案
apt-get install libglib2.0-dev