歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> SHELL編程 >> 在Ubuntu 10.10下安裝最新版Gnome-Shell

在Ubuntu 10.10下安裝最新版Gnome-Shell

日期:2017/2/28 16:24:54   编辑:SHELL編程

  本文將著重介紹在Ubuntu 10.10下安裝最新版Gnome-Shell安裝方法:

  1:安裝依賴和下載設置腳本

  sudo apt-get install curl jhbuild libjasper-dev libdconf0 libtiff4-dev libgstreamer0.10-dev

  libcroco3-dev xserver-xephyr xulrunner-dev python-dev mesa-utils mesa-common-dev libreadline5-dev

  libgl1-mesa-dev libwnck-dev librsvg2-dev libgnome-desktop-dev libgnome-menu-dev

  libffi-dev libgtk2.0-dev libgconf2-dev libdbus-glib-1-dev gtk-doc-tools gnome-common

  git-core flex bison automake build-essential icon-naming-utils autopoint libcanberra-dev

  libpulse-dev libvorbis-dev gnome-settings-daemon-dev libxklavier-dev libpam0g-dev libtasn1-3-bin

  libupower-glib-dev libgnome-keyring-dev

  cd

  curl -O http://git.gnome.org/browse/gnome-shell/plain/tools/build/gnome-shell-build-setup.sh

  注意:如果你在使用Mozilla Daily PPA,你還得安裝xulrunner-1.9.2-dev

  sudo apt-get install xulrunner-1.9.2-dev

  接下來進行2,3步,如果在2,3步遇到gjs編譯的問題,你可以嘗試把Mozilla Daily PPA給刪除了,然後再重新執行下邊的第2步

  sudo apt-get install ppa-purge

  sudo ppa-purge ppa:ubuntu-mozilla-daily/ppa

  2 導出變量

  export PATH=$PATH:/home/username/bin

  username換成你的用戶名

  3 開始編譯

  cd

  chmod +x gnome-shell-build-setup.sh

  ./gnome-shell-build-setup.sh

  jhbuild build

  然後拿杯咖啡去享受或者繼續完成其他工作吧,這個需要等待一段時間,具體長度視網速和機器性能

  還有,如果在編譯中遇到以下問題:

  問題1:

  /home/andrei/gnome-shell/install/lib/libgio-2.0.so: undefined reference to `g_main_context_invoke’

  collect2: ld returned 1 exit status

  [...]

  *** Error during phase build of gnome-shell: ########## Error running make *** [24/28]

  解決辦法:不要關閉當前終端,打開一個新終端,

  對於32位

  rm ~/gnome-shell/install/lib/*.la

  對於64位

  rm ~/gnome-shell/install/lib64/*.la

  然後回到原終端,重新運行

  jhbuild build

  可能會出現以下內容:

  [1] Rerun phase build

  [2] Ignore error and continue to install

  [3] Give up on module

  [4] Start shell

  [5] Reload configuration

  [6] Go to phase “wipe directory and start over”

  [7] Go to phase “configure”

  [8] Go to phase “clean”

  [9] Go to phase “distclean”

  在這裡輸入6,然後根據提示輸入yes..不出意外,應該安裝成功了,會收到如下的提示信息:

  *** success *** [28/28]

  問題2:

  ~/gnome-shell/source/gnome-settings-daemon/gnome-settings-daemon/main.c:274: undefined reference to `notify_init’

  collect2: ld returned 1 exit status

  make[3]: *** [gnome-settings-daemon] Error 1

  make[3]: Leaving directory `/home/arindom/gnome-shell/source/gnome-settings-daemon/gnome-settings-daemon’

  make[2]: *** [all] Error 2

  make[2]: Leaving directory `/home/arindom/gnome-shell/source/gnome-settings-daemon/gnome-settings-daemon’

  make[1]: *** [all-recursive] Error 1

  make[1]: Leaving directory `/home/arindom/gnome-shell/source/gnome-settings-daemon’

  make: *** [all] Error 2

  *** Error during phase build of gnome-settings-daemon: ########## Error running make *** [26/28]

  解決辦法:

  cd ~/bin

  ./jhbuild shell

  cd ~/gnome-shell/source

  git clone git://git.gnome.org/libnotify

  cd ./libnotify

  ./autogen.sh –prefix $HOME/gnome-shell/install/

  make && make install

  問題3:安裝成功,卻無法啟動

  andrei@andrei-desktop:~$ ~/gnome-shell/source/gnome-shell/src/gnome-shell –replace

  mutter: symbol lookup error: /home/andrei/gnome-shell/install/lib/gtk-3.0/modules/libcanberra-gtk-module.so:

  undefined symbol: gtk_quit_add

  解決辦法

  rm ~/gnome-shell/install/lib/gtk-3.0/modules/libcanberra-gtk-module.so

  4 嘗試安裝好的gnome-shell

  打開終端,輸入

  ~/gnome-shell/source/gnome-shell/src/gnome-shell –replace

  退出gnome-shell:

  ALT+F2,輸入

  debugexit

  5 升級gnome-shell

  cd && jhbuild build –force –clean

  如果遇到以前問題,解決就是了…如果遇到撞破頭皮也搞不定的,兄弟…把$HOME裡的gnome-shell都給刪除了重新來一次吧

Copyright © Linux教程網 All Rights Reserved