天天看點

建立pjsip module 的python 版本時遇到的錯誤: error: ld returned 1 exit status error: ommand 'x86_64-linux-g

建立pjsip module 的python 版本時遇到的錯誤: error: ld returned 1 exit status error: ommand ‘x86_64-linux-gnu-gcc’ failed

解決辦法如下:

(1)執行configure 時 先執行 export CFLAGS=”$CFLAGS -fPIC” 指令。 是以就是說把 ./configure &&make dep &&make 替換為

export CFLAGS="$CFLAGS -fPIC" && ./configure &&make dep &&make

然後再執行下一步

(2) 如果此過程仍然報錯,且 錯誤是“fatal error : alsa/asoundlib.h: No such file or directory ” 的話,為了修複這個錯誤需要先下載下傳一個 libasound2-dev的包。 下載下傳此包的指令為

apt-get install libasound2-dev

.