Ubuntu10.10下通过git安装最新版的GNOME-SHELL

9
2011
# 作者: freetstar / 本文采用CC BY-NC-SA 2.5协议授权,转载请注明本文链接

这是Riku哥之前的图形并茂的介绍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都给删除了重新来一次吧
备注:
1 大家都看到了,我们实在$HOME下进行编译安装的,基本上Gnome-shell安装时不会覆盖系统中已经存在的库
2 本文出自这里here,更多的线索可以在这里搜索here,更多的问题大家可以去国外的Ubuntuforums以"Gnome Shell testing"为关键词搜索
3 也可以参照这个链接哈:http://live.gnome.org/GnomeShell#building
4 ubuntu中的ppa已经很久没有更新了,比较老

作者:freetstar

Bio: 关注和奉献Tianjin Linux User Group的建设,关注开源社区,Linux爱好者,python lover,希望成为一名geek,求交流求指导
链接:Blog - Twitter - Facebook - 此作者的更多文章

17 Responses to Ubuntu10.10下通过git安装最新版的GNOME-SHELL

Avatar

dxq83

Firefox 4.0b8 Firefox 4.0b8 GNU/Linux GNU/Linux

一月 9th, 2011 at 8:12 下午

ubuntu不是不用gnome-shell了吗?

[Reply]

Google Chrome 8.0.552.224 Google Chrome 8.0.552.224 GNU/Linux GNU/Linux

freetstar Reply:

@dxq83, 只是官方发行版不使用gnome-shell而已

[Reply]

Avatar

xidi

Firefox 4.0b8 Firefox 4.0b8 GNU/Linux GNU/Linux

一月 9th, 2011 at 8:36 下午

10.10的unity在俺的电脑上有点卡卡的,是不是驱动没跟上。在桌面版上用docky和全局菜单一点都不卡。

[Reply]

Avatar

riku

Google Chrome 10.0.628.0 Google Chrome 10.0.628.0 GNU/Linux x64 GNU/Linux x64

一月 9th, 2011 at 9:11 下午

呃,写得很详细啊,赞!~

[Reply]

Google Chrome 8.0.552.224 Google Chrome 8.0.552.224 GNU/Linux GNU/Linux

freetstar Reply:

@riku, ^_^

[Reply]

Avatar

哪有那么复杂啊

Google Chrome 8.0.552.224 Google Chrome 8.0.552.224 Windows XP Windows XP

一月 10th, 2011 at 2:25 下午

http://live.gnome.org/GnomeShell/#Building

基本上就2个命令:
curl -O http://git.gnome.org/browse/gnome-shell/plain/tools/build/gnome-shell-build-setup.sh & /bin/bash gnome-shell-build-setup.sh

它会自动帮你装上依赖

然后:

jhbuild build

[Reply]

Avatar

Gnome Shell Elementary 主题 [美化] | Wow!Ubuntu

WordPress 3.0.4 WordPress 3.0.4

一月 17th, 2011 at 11:55 上午

[...] PS: 如果你想在 Ubuntu 10.10 上体验最新的 Gnome Shell 的话,可以参看此文在自已的机器上编译一份。 [...]

Avatar

xiaodang

Chromium 10.0.639.0 Chromium 10.0.639.0 Ubuntu 10.10 Ubuntu 10.10

一月 18th, 2011 at 6:44 下午

4 尝试安装好的gnome-shell
打开终端,输入
~/gnome-shell/source/gnome-shell/src/gnome-shell –replace

-----------------
gnome-shell ––replace 中间少了一小横。

[Reply]

Google Chrome 8.0.552.237 Google Chrome 8.0.552.237 GNU/Linux GNU/Linux

freetstar Reply:

@xiaodang, 好像是网页给格式化了...

[Reply]

Avatar

快讯:gnome3官方网站上线 | Ubuntu Home

WordPress 3.0.1 WordPress 3.0.1

一月 19th, 2011 at 9:18 下午

[...] gnome3今年4月份正式发布。现在最新版本是2.91.5,跟ubuntu官方源上的gnome-shell比起来改变了很多。如果你想尝试,可以参照这里,不喜欢看E文的话,wowubuntu上有一篇已经翻译好的。不过本机编译没通过。可能与RP有关吧! [...]

Avatar

行走的麦哥

Firefox 3.6.13 Firefox 3.6.13 Ubuntu 10.10 Ubuntu 10.10

一月 20th, 2011 at 12:47 下午

顺着gnome3来的,安装了之后才发现标题上说的是Gnome-shell,有点兴奋过度了,呵呵。

[Reply]

Avatar

直播:正在安装最新版Gnome-shell | 行走的麦哥

WordPress 3.0.4 WordPress 3.0.4

一月 20th, 2011 at 1:03 下午

[...] 看到了Gnome3已经上线的通知让人有点莫名的兴奋,于是顺着资讯的一条链接来到了《Ubuntu10.10下通过git安装最新版的GNOME-SHELL》,我承认,这次我有点兴奋过头了,标题都没看清,就按照步骤在操作了,心里想的还是Gnome3(明明知道是4月发布,还是太兴奋了)。 [...]

Avatar

Gnome Shell Elementary 主题 | IMCN|我是菜鸟

WordPress 3.0.4 WordPress 3.0.4

一月 20th, 2011 at 2:12 下午

[...] PS: 如果你想在 Ubuntu 10.10 上体验最新的 Gnome Shell 的话,可以参看此文在自已的机器上编译一份。 [...]

Avatar

Gnome 3 Beta 1 发布 [新闻] | Wow!Ubuntu

WordPress 3.1 WordPress 3.1

二月 25th, 2011 at 4:45 下午

[...] 这次的 Gnome Shell 版本在很多细节之处做了很大改变,主要包括如下:(如果你想体验的话,请参照这篇文章在 Ubuntu 上编译 Gnome Shell ,或下载 Gnome 3 Live CD ) [...]

Avatar

笨兔兔 - Ubuntu10.10下通过git安装最新版的GNOME-SHELL

WordPress 3.0.5 WordPress 3.0.5

三月 8th, 2011 at 9:57 下午

[...] 本文参考webupd8/wowubuntu [...]

Avatar

dolmlob

Chromium 10.0.648.151 Chromium 10.0.648.151 Ubuntu 10.10 Ubuntu 10.10

三月 31st, 2011 at 9:22 上午

没装libgconf2-4, 让我干等了一个晚上。。。

[Reply]

Avatar

owlsky

Firefox 4.0.1 Firefox 4.0.1 GNU/Linux GNU/Linux

五月 6th, 2011 at 12:59 下午

此法在11.04上可行不?测试中...

[Reply]

Comment Form

top

无觅相关文章插件,快速提升流量