Linux CMake更新及安裝

2021-10-06 12:04:21 字數 496 閱讀 8437

安裝

最簡單的安裝方式:

yum install -y cmake

ok,但這種自動安裝的方式,cmake的版本較低。

在我的測試機上,版本為:

因為cmake更新較多,cmakefile檔案一般會指定cmake版本,如果安裝的版本較低,會導致許多cmake不能編譯。

公升級及原始碼安裝

如果已經安裝了cmake,需要先解除安裝舊版本:yum remove cmake -y && rm -f /usr/bin/cmake

按以下步驟進行原始碼安裝:

解壓進入目錄,root執行:./bootstrap && gmake && gmake install,較慢。

若上步提示「could not find openssl」,則執行以下安裝openssl(若無錯誤,則跳過本步驟): 檢視

cmake --version,如下:

linux cmake(未完,待更新)

參考 栗子 1 project es 2 set cmake build type debug cache string set build type to debug 3 set cmake c compiler g 4 set cmake cxx flags g 5 add compile op...

Tensorflow安裝及更新

從tensorflow1.2開始,不再支援gpu在mac os x上的安裝。pip install tensorflow python 2.7 cpu support pip3 install tensorflow python 3.n cpu support如果上面的安裝出錯,可以通過以下命令安裝...

Mac上更新Ruby及安裝 CocoaPods

1.開啟終端 2 移除現有 ruby 預設源 輸入以下指令 gem sources remove 3.使用新的源輸入以下指令 gem sources a 4.驗證新源是否替換成功輸入以下指令 gem sources l 5.安裝 cocoapods sudo gem install cocoa po...