Deepin 零碎装置 navicat15(已验证)
下载 Navicat15
通过上面地址下载 Navicat15, 默认下载到桌面即可
$ https://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 https://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 https://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 https://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
好了,教程就到这里了
文章参考自:https://blog.csdn.net/weixin_…