opensuse linux安裝gcc編譯環境

在南京看海發表於2016-08-04

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

相關文章