Linux 錯誤:fatal error: uuid/uuid.h: No such file or directory
重新configure 後,出現別的錯誤:fatal error: uuid/uuid.h: No such file or directory
這是因為沒有uuid庫和標頭檔案,需要安裝e2fsprogs,試過yum命令安裝,問題沒解決,需要從原始碼編譯
wget
tar xvzf e2fsprogs-1.41.14.tar.gz
進入e2fsprogs-1.41.14目錄後執行
/configure --prefix=/usr/local/e2fsprogs
make
make install
然後把uuid目錄拷過去
cp -r lib/uuid/ /usr/include/
再次configure ,錯誤消失,於是執行 make
又報錯:
libgearman/.libs/libgearman.so: undefined reference to `uuid_generate'
libgearman/.libs/libgearman.so: undefined reference to `uuid_unparse' collect2: ld returned 1 exit status
問題在網上找到了解決方法,就是重新編譯e2fsprogs並加入引數
cd e2fsprogs-1.41.14
./configure --enable-elf-shlibs
make
make install
cp -rf lib/libuuid.so* /usr/lib
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28624388/viewspace-1462690/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- Ubuntu下 fatal error: Python.h: No such file or directory 解決方法UbuntuErrorPython
- Fatal NI connect error 12170 錯誤Error
- 高德地圖使用cocoapods No such file or directory錯誤地圖
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- Goldengate複製程式錯誤Fatal error executing DDLGoError
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- /usr/bin/xauth: error in locking authority file錯誤Error
- TNS-04414 file error 錯誤解決Error
- "Fatal error: Call to undefined function: file_put_contents()"ErrorUndefinedFunction
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- golang原始碼安裝時fatal error: MSpanList_Insert錯誤Golang原始碼Error
- Alert Log中“Fatal NI connect error 12170”錯誤問題Error
- 如何在 Linux 中修復“fatal error: x264.h: No such file or directoLinuxError
- Flutter在iOS裝置執行報錯fatal error: 'Flutter/Flutter.h' file not foundFlutteriOSError
- MysqL錯誤之_ERROR! MySQL server PID file could not be found!MySqlErrorServer
- docker mysql mysqld: Error on realpath() on ‘/var/lib/mysql-files‘ No such file or directoryDockerMySqlError
- Oracle ASM File DirectoryOracleASM
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- linux解決“XXX is not in the sudoers file”錯誤Linux
- GIT 提交錯誤 fatal: LF would be replaced by CRLFGit
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- Linux 格式化分割槽 報錯Could not stat /dev/sda3 --- No such file or directoryLinuxdev
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- python unix :No such file or directoryPython
- MySQL error 錯 誤 碼MySqlError
- PostgreSQL error 錯誤碼SQLError
- 在 Linux 中執行.sh 指令碼 No such file or directoryLinux指令碼
- Error page: / Error infos: DedeCms錯誤警告Error
- Error:/etc/fstab:Read-only file system錯誤的解決辦法Error
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject
- Fatal NI connect error 12170.報錯處理Error
- Linux格式化分割槽報錯Could not start /dev/sda No such file or directory 解決辦法Linuxdev
- 【ERROR】su user報'This account is currently not available'錯誤 for linuxErrorAILinux