Jerasure2 0 在Ubuntu上的安裝

2021-10-09 10:00:46 字數 1897 閱讀 4552

目錄

jerasure2.0 在ubuntu上的安裝

準備:配置:

錯誤解決方法:

參考資料:

2.安裝autoconf automake

sudo apt-get install automake autoconf

2.安裝libtool

sudo apt-get install libtool

1.在專案根目錄執行

autoreconf -if 

專案目錄下會多出m4檔案目錄, config.h.in檔案, makefile.in檔案, configure指令碼, compile指令碼, depcomp指令碼等檔案;

2.接著執行

./configure

進行配置生成makefile檔案,譬如enbale/disbale一些特性,設定交叉編譯平台(例如--host=linux-mips),設定編譯安裝目錄(例如--prefix=path_to_your_build_directory)具體可以檢視help資訊;

3.執行

make

執行makefile檔案

4.執行

sudo make install

此時可以看到examples裡面有了可執行檔案,但是此時執行這些檔案會出現錯誤:

error while loading shared libraries: lib******x.so.1: cannot open shared object file: no such file or directory
在明確已經安裝該庫的情況下出現上述錯誤,可能是因為這個庫目錄並沒有加入到該環境變數中,需要進行以下步驟:

一般安裝目錄在

/usr/local/lib

將該目錄加入到共享庫的配置檔案中

sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"

sudo ldconfig

執行完以上操作,再到examples裡就可以成功執行示例了。

在執行autoconf的時候出現以下錯誤:

error: possibly undefined macro: am_init_automake

if this token and others are legitimate, please use m4_pattern_allow.

see the autoconf documentation.

configure.ac:25: error: possibly undefined macro: am_prog_cc_c_o

configure.ac:27: error: possibly undefined macro: ac_libtool_win32_dll

configure.ac:28: error: possibly undefined macro: ac_prog_libtool

configure.ac:30: error: possibly undefined macro: am_prog_lex

configure.ac:100: error: possibly undefined macro: am_conditional

解決方法:

執行

autoreconf --install

在windows的網路鄰居中訪問Ubuntu

最近在做cas單點登入,因為要用到ssl,所以做了證書。因為還在開發階段,還沒有網域名稱,所以證書中使用了我ubuntu的主機名eric desktop 應用部署在ubuntu上 接著遇到的問題是我在ubuntu中可以訪問,但是如果從另一台電腦訪問應用,登入成功後會報錯,沒有辦法正確導向原來的應用。...

web2 0在中國的危機

人說 居安思危 我在這裡談 web2.0 在中國的危機,實際上是由於 web2.0 已經在中國熱起來了,無論是滿懷激情的 it小人物,還是巨無霸的門戶,都在或明或暗的 web2.0 著,似乎網際網路的前途都在這 web2.0 上了。但是,我覺得至少有一些是值得擔心的,在中國,web2.0 其實並不理...

在矽谷20年,她選擇回「家」

1995年,王燕蓉大學畢業後不久就赴美留學,一待就是20年。在世界的創新中心矽谷有了幸福美滿的家,有體面稱心的工作。所以當她決定舉家回國的時候,她周圍的朋友和同事都很震驚。按照常人的邏輯,這有些不可思議。我們非常好奇她為什麼要選擇回家。緣起 我和我的先生都有非常強烈的中國情結。她告訴筆者。王燕蓉坦承...