当前位置:金沙js333娱乐场 > 网络频道 > Linux Deepin 11.06 中编译 Gnome Shell

Linux Deepin 11.06 中编译 Gnome Shell

文章作者:网络频道 上传时间:2019-10-20

Ubuntu 11.04的可以直接用PPA安装,我们介绍过很多次了,在此不再赘述。笨兔兔在此感谢孙冉同学的文稿投递。(可是女生?)

LinuxDeepin下一个版本的桌面环境会选择 Gnome3,大家可以用下面的办法提前在 LD 11.06 中体验 Gnome-Shell. 图片 1

对于之前的版本(Ubuntu 10.04~10.10)及官网没有提供源的Linux版本可采用此方法编译源码安装Gnome3。

因为现有 PPA 的方法会导致用户进不了桌面, 所以我们用编译的开发版本的方法, 编译的方法的好处就是即使编译失败, 也不会破坏现有的桌面环境。

* 1.首先依赖包问题

1. 安装编译依赖:

这个依赖包是相当的多,安装的时候可能有那么一两个不行,貌似也不影响,我自己Ubuntu10.04安装时 autopoint 这个包没找到

sudo apt-get install curl libtiff4-dev libgstreamer0.10-dev libcroco3-dev xulrunner-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 libvorbis-dev

libpam-dev libgcrypt-dev libtasn1-dev libtasn1-3-bin libgnome-keyring-dev libupower-glib-dev

libxklavier16 libxklavier-dev xserver-xephyr python-dev libpulse-dev libjasper-dev jhbuild

libgtop2-dev libsqlite3-dev libproxy-dev libdb-dev libproxy-dev libcups2-dev libusb-1.0-0-dev

libxcb-aux0-dev libxcb-event1-dev libx11-xcb-dev liboauth-dev libwebkitgtk-3.0-dev libical-dev gperf

libgudev-1.0-dev hwdata liborbit2-dev libgtk-3-dev libidn11-dev libsane-dev liblircclient-dev

libltdl-dev libvorbisfile3 libgail-3-dev libnotify4-dev libgnome-desktop-3-dev -y

sudo apt-get install curl 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 libpulse-dev libcanberra-dev autopoint libjasper-dev libvorbis-dev libpam-dev libxklavier-dev libgnome-keyring-dev libupower-glib-dev libgtop2-dev libcups2-dev evolution-data-server-dev libsqlite3-dev libproxy-dev libdb-dev libproxy-dev

2.  添加路径到 ~/.bashrc

*

把下面的行加入到 ~/.bashrc 最后面:

* 2.依赖问题解决了就直接git源码

PATH=$PATH:~/bin

PATH=$PATH:~/gnome-shell/install/bin

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

3.下载/执行 Gnome-Shell 构建脚本:

/bin/bash gnome-shell-build-setup.sh

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

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

./gnome-shell-build-setup.sh

* 然后

4. 构建 Gnome-Shell (更新代码也是同样的命令):

jhbuild build

sudo find /usr/lib{,32,64} -name "*.la" -delete (这一步非常重要, 否则 libgtk3 会报错)

sudo jhbuild build

* 需要注意的是这里不能用root权限

5. 安装 Nautilus 3:

*

先下载三个包:

*

wget https://launchpad.net/[Ubuntu](https://www.linuxidc.com/topicnews.aspx?tid=2)/oneiric/+source/gsettings-desktop-schemas/3.1.3-0ubuntu1/+files/gsettings-desktop-schemas_3.1.3.orig.tar.bz2

wget http://launchpad.net/gnome-desktop/main/3.1.3/+download/gnome-desktop-3.1.3.tar.bz2

wget http://launchpad.net/nautilus/main/3.0.2/+download/nautilus_3.0.2.orig.tar.gz

用下面的命令依次对这三个包进行编译:

./configure && make && sudo make install

这个过程目前一共41个部分,极易出错,建议在这之前执行以下部分,具体这个la文件为什么影响我也不知道。。。

6. 开机自动启动 Gnome-Shell

本文由金沙js333娱乐场发布于网络频道,转载请注明出处:Linux Deepin 11.06 中编译 Gnome Shell

关键词: