RMaigic 一系列錯誤解決

2021-05-22 21:58:59 字數 665 閱讀 2210

在ubuntu上安裝rmagick真是一件痛苦的事情,版本依賴折磨了一天。

libmagickcore.so.2: cannot open shared object file: no such file or directory – /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/rmagick2.so

解決以上錯誤。

ldconfig /usr/local/lib

還有一些其他錯誤:

1.不要用apt-get install來安裝包

這裡去下imagemagic

ftp://ftp.imagemagick.org/pub/imagemagick/imagemagick.tar.gz

2.編譯imagemagic

標準的./configure

make

make install

3.安裝rmagick

gem install rmagick

這裡就可能產生版本問題,imagemagic版本低了就不行。

4.怎麼測試是否安裝成功

解決import keras後出現的一系列問題

如果import keras 後出現 如下錯誤 attributeerror module keras.backend.tensorflow backend has no attribute is tf 1 則此時在cmd輸入 pip uninstall keras 然後再輸入pip install...

關於mysql 一系列操作

這是在linux 的mysql的資料庫操作,備份資料庫 mysqldump u root p cxn usr local backupcxn.sql 引數說明 cxn 代表著我要備份的資料庫名稱,usr local backupcxn.sql代表著備份到usr local下,輩分的名稱叫做backu...

一系列nginx安全配置

1.檢視所有模組 root proxy nginx 1.12.2 configure help2.選擇適合的模組 pcre 開啟正規表示式支援 http autoindex module 自動索引模組 ssi module ssi 指令碼 http ssl module ssl 支援 http 模組...