Deepin系統navicat15安裝
- 2022 年 9 月 27 日
- 筆記
Deepin系統安裝navicat15(已驗證)
下載Navicat15
通過下面地址下載Navicat15,默認下載到桌面即可
$ //download.navicat.com.cn/download/navicat15-premium-cs.AppImage
然後右鍵Open with選擇 Archive Manager
解壓到桌面的navicat15-premium-cs-bak
文件夾
$ mv navicat15-premium-cs/ ~/Desktop/temp/navicat15-premium-cs-bak
安裝依賴包
$ sudo apt install libcapstone-dev cmake rapidjson-dev openssl git
安裝keystone
- git拉取keystone
$ git clone //github.com/keystone-engine/keystone.git
- 編譯keystone
$ mkdir -pv ~/Desktop/temp/keystone/build
$ cd ~/Desktop/temp/keystone/build
$ ../make-share.sh
這一步可能會報下面錯誤
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:5 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/liang/Desktop/keystone/build/CMakeFiles/CMakeOutput.log".
See also "/home/liang/Desktop/keystone/build/CMakeFiles/CMakeError.log".
解決辦法
$ sudo apt-get update
$ sudo apt-get install -y build-essential
- 安裝已經編譯好的程式
$ sudo make install
- 執行動態鏈接庫管理命令
$ sudo ldconfig
安裝navicat-keygen
安裝編譯navicat-keygen
$ cd ~/Desktop/temp/
$ git clone -b linux --single-branch //gitee.com/andisolo/navicat-keygen.git
$ cd navicat-keygen
$ make all
修改原公鑰
$ ./bin/navicat-patcher ../navicat15-premium-cs-bak/
打包app
- 打包navicat15-premium-cs-2.AppImage
$ cd ~/Desktop/temp
$ wget //github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
$ chmod +x appimagetool-x86_64.AppImage
$ ./appimagetool-x86_64.AppImage navicat15-premium-cs-bak/ navicat15-premium-cs-2.AppImage
$ sudo chmod +x ~/Desktop/temp/navicat15-premium-cs-2.AppImage
生成序列號和JH碼
$ cd ~/Desktop/temp/navicat-keygen
$ ./bin/navicat-keygen --text ./RegPrivateKey.pem
按提示選擇Navicat產品類別(1.Premium)、Navicat語言版本(1.)和填寫主版本號(15),隨後生成一個序列號,輸入用戶名和組織,出現Input request code in Base64: (Double press ENTER to end),雙擊回車退出。
軟體註冊
操作這一步建議斷開網路。(網上別人說的)
運行命令下面命令或者直接桌面雙擊 navicat15-premium-cs-2.AppImag 打開navicat15工具
$ cd ~/Desktop/temp/
$ ./navicat15-premium-cs-2.AppImage
- 選擇註冊,輸入上一步生成的Serial number,點擊激活,提示激活失敗,選擇手動激活,然後複製請求碼。
- 再次執行navicat-keygen生成序列號和JH碼的步驟,最後一步把選擇手動激活時複製的請求碼複製進入,敲回車。
- 再次打開navicat15工具,這時打開就不需要再激活了。(如果需要激活,把生成的Serial number填進去再激活一下)
把軟體移到桌面
$ mv ./navicat15-premium-cs-2.AppImage ~/Desktop/navicat15
文章參考自://blog.csdn.net/weixin_44153796/article/details/126854513?spm=1001.2014.3001.5501
好了,教程就到這裡結束了。
您的關注,是我的創作動力!
公眾號 @生活處處有BUG