fufs環境搭建

來源:互聯網
上載者:User

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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.