Debian


编译Gambas3

从源代码编译(squeeze - oldstable)


Gambas 3 (版本<= 3.4.2)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. Gambas <=3.4.2需要gstreamer >= 0.10.31 (用于gb.media)以及llvm >= 3.1(用于gb.jit)。

Squeeze仓库中没有这些所需的版本,但是在wheezy仓库中有。

所以首先需要添加wheezy main仓库到软件源中(/etc/apt/sources.list)。

用nano编辑器打开sources.list文件。

$ sudo nano -w /etc/apt/sources.list

添加下列行到sources.list :

deb http://ftp.nl.debian.org/debian/ wheezy main
deb-src http://ftp.nl.debian.org/debian/ wheezy main

保存结果(<ctrl> + O -> <enter>)并关闭sources.list文件(<ctrl> + X)

接下来刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev libgmime-2.6-dev llvm-3.1-dev

步骤5.进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


Gambas 3 (版本>= 3.5或者是=/trunk=版本)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. Gambas >= 3.5需要gstreamer >= 1.0 (用于gb.media) and llvm >= 3.1 (用于gb.jit)。

Squeeze仓库中没有这些所需的版本,但是在sid仓库中有。

所以首先需要添加sid main仓库到软件源中(/etc/apt/sources.list).

用nano编辑器打开sources.list文件。

$ sudo nano -w /etc/apt/sources.list

添加下列行到sources.list :

deb http://ftp.nl.debian.org/debian/ sid main
deb-src http://ftp.nl.debian.org/debian/ sid main

保存结果(<ctrl> + O -> <enter>)并关闭sources.list文件(<ctrl> + X)

接下来刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgmime-2.6-dev llvm-3.2-dev libalure-dev

步骤5.进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


从源代码编译(wheezy - stable)


Gambas 3 (版本<= 3.4.2)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. 安装时首先要用下面命令刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev libgmime-2.6-dev llvm-3.1-dev

步骤5:进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


Gambas 3 (版本>= 3.5或者是=/trunk=版本)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. Gambas >= 3.5需要gstreamer >= 1.0 (用于gb.media).

Wheezy仓库中没有这些所需的版本,但是在sid仓库中有。

所以首先需要添加sid main仓库到软件源中(/etc/apt/sources.list).

用nano编辑器打开sources.list文件。

$ sudo nano -w /etc/apt/sources.list

添加下列行到sources.list :

deb http://ftp.nl.debian.org/debian/ sid main
deb-src http://ftp.nl.debian.org/debian/ sid main

保存结果(<ctrl> + O -> <enter>)并关闭sources.list文件(<ctrl> + X)

接下来刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgmime-2.6-dev llvm-3.1-dev libalure-dev

步骤5:进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


从源代码编译(jessie - testing)


Gambas 3 (版本<= 3.4.2)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. 安装时首先要用下面命令刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev libgmime-2.6-dev llvm-3.2-dev

步骤5:进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


Gambas 3 (版本>= 3.5或者是=/trunk=版本)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. Gambas >= 3.5需要gstreamer >= 1.0 (用于gb.media).

Jessie仓库中没有这些所需的版本,但是在sid仓库中有。

所以首先需要添加sid main仓库到软件源中(/etc/apt/sources.list).

用nano编辑器打开sources.list文件。

$ sudo nano -w /etc/apt/sources.list

添加下列行到sources.list :
deb http://ftp.nl.debian.org/debian/ sid main
deb-src http://ftp.nl.debian.org/debian/ sid main

保存结果(<ctrl> + O -> <enter>)并关闭sources.list文件(<ctrl> + X)

接下来刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgmime-2.6-dev llvm-3.2-dev libalure-dev

步骤5:进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


从源代码编译(sid - unstable)


Gambas 3 (版本>= 3.1或者是=/trunk=版本)


步骤1. 获取源代码(可以从Gambas网站下载压缩包解包,也可以用svn checkout命令获取)

步骤2. 打开终端(确保当前用户是sudo用户组成员)

步骤3. 安装时首先要用下面命令刷新软件源:

$ sudo apt-get update

步骤4.安装下列包:

$ sudo apt-get install build-essential g++ autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgmime-2.6-dev llvm-3.2-dev libalure-dev

步骤5:进入Gambas源代码文件所在目录,并执行下面命令:

$ ./reconf-all

步骤6.一但命令运行结束,就可以运行GNU/Linux下编译和安装软件的常用命令:

$ ./configure -C
$ make
$ sudo make install

步骤7:键入gambas3

Gambas应该启动并运行。

提示:可以创建符号链接来启动gambas3


Gambas 3二进制包

用于wheezy、jessie和sid


用于wheezy、jessie和sid的官方软件库中有Gambas 3.1.1可以使用。

只需打开终端并执行下面命令:

sudo apt-get update
sudo apt-get install gambas3

安装结束后可以在“应用程序”菜单中找到安装的Gambas 3。

仅用于squeeze


Kendek's PPA, although an Ubuntu PPA, can be used by squeeze (I have it running and working on squeeze since Gambas version 3.2.1 and no problems so far).

Kendek keeps the PPA well updated and a few days after a new stable release you can expect an update, so you will always have the latest stable Gambas 3 version.

打开终端并执行:

sudo nano -w /etc/apt/sources.list

添加下面行到/etc/apt/sources.list:

deb http://ppa.launchpad.net/nemh/gambas3/ubuntu lucid main
deb-src http://ppa.launchpad.net/nemh/gambas3/ubuntu lucid main

接下来保存并关闭sources.list文件,然后执行:

sudo apt-get update

It will complain on signing keys, just ingnore them and you should be fine.

然后执行:

sudo apt-get install gambas3

安装结束后可以在“应用程序”菜单中找到安装的Gambas 3。

Debian

Trouble with sudo


When you issue your first sudo command in terminal it might give you trouble on Debian (see illustration below).

This simply means you have issuficient user priveledges. To deal with this problem add your user to the group sudo.

These are the steps to correct this problem:

1. 打开终端并输入:

su root

输入root口令并按<enter>.

2. 输入:

adduser USERNAME sudo

用你的用户名替换USERNAME。

3. 输入(对,是两次):

exit
exit

4. Reboot Debian and when started again sudo will work in a terminal for the user you added to sudo group.


A note on package dependencies


As dependencies may change over time it is always a good thing to know what is available on Debian and in what repository.

Check Debian packages overview for the availability of needed dependency packages on Debian.

If you scroll all the way down on the page you can search for a package and find out what repositories hold them.


Search for package llvm-3.2-dev shows us it is only available for jessie and sid


屏幕截图

Debian squeeze


Debian squeeze运行来自Kendek的Ubuntu PPA的Gambas 3.4.2




Debian wheezy


Debian wheezy运行从源代码编译的Gambas 3.4.2




Debian Gambas 3 instructons by: W. Raets - Sept 8th, 2013
- Updated: Sept. 10th, 2013 by W. Raets=