opensuse linux安装gcc编译环境

时间:2021-03-27 02:27:47

1、使用命令直接网络安装

zypper install bison ccache flex gcc gcc-c++ gcc-java gcc-info zlib-devel nasm boost-devel gsl-devel sqlite3-devel libqt4-devel libqt4-devel-doc cmake cmake-gui autoconf autogen automake automoc4 make qt-creator git mercurial 


2、由于网络原因,可能在线安装较慢,可以将离线资源直接上传到opensuse 系统的/var/cache/zypp/raw目录下,在执行步骤1中的命令安装,下载地址如下:

http://download.csdn.net/detail/qq_33336155/9594431


目录示例:

linux-d9x7:/var/cache/zypp/raw # pwd
/var/cache/zypp/raw
linux-d9x7:/var/cache/zypp/raw # ll
total 20
drwxr-xr-x 4 root root 4096 Aug  3 20:13 openSUSE-12.3-1.7
drwxr-xr-x 4 root root 4096 Aug  3 19:59 repo-non-oss
drwxr-xr-x 4 root root 4096 Aug  3 20:13 repo-oss
drwxr-xr-x 3 root root 4096 Aug  3 20:18 repo-update
drwxr-xr-x 3 root root 4096 Aug  3 20:13 repo-update-non-oss