fjf_zzz 2018-04-10 21:28:26 2018次浏览 1条评论 0 1 0

2.关闭防火墙

第一步关掉linux的防火墙,由于自己之前没有关闭防火墙导致navicat启动不了。

1)关闭SELINUX
打开/etc/selinux/config
在文件中加入SELINUX=disabled
上面加入保存之后 需要重启才能生效

2)关闭防火墙
参考https://www.linuxidc.com/Linux/2016-12/138979.htm 中方法
本机为7.0版本
使用方法如下:
systemctl stop firewalld.service //停止firewall
systemctl disable firewalld.service //禁止firewall开机启动
reboot //重启系统

3.安装wine

由于navicat要借助wine,所以得首先安装wine。

1)安装epel源。
epel源下载地址:http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
安装epel:
[root@spark Desktop]$ rpm -ivh epel-release-6-8.noarch.rpm

安装wine:
yum install wine

4.安装navicat
下载地址解压包:
http://download.navicat.com/download/navicat111_mysql_en.tar.gz
下载好了之后 我把压缩包放在/data/navicat下面

进入压缩包的目录:
[root@spark Desktop]$ cd /data/navicat

进行压缩操作:
[root@spark navicat]$ tar -zxvf navicat111_mysql_en.tar.gz
我这里运行上面压缩操作出现报错(tar: Error is not recoverable: exiting now),我把zxvf改成xvf就可以了

cd navicat_for_mysql //进入解压目录
./start_navicat //启动
对于32位的CentOS7 来说上面的步骤应该就能用了。但是对于64位的系统,执行./start_navicat看不到任何效果。原因是缺少一些必要的包。
解决办法:
yum install libgcc.i686 //我这里报错:保护多库版本:libgcc-4.8.5-11.el7.i686 != libgcc-4.8.5-4.el7.x86_64。原因是不同版本的包引起了冲突。解决:删除冲突的包libgcc-4.8.5-4.el7.x86_64

rpm -pa | grep libgcc-4.8.5-4.el7.x86_64 //查找删除包
rpm -e libgcc//删除包

  • 这里我没有删除成功,原因不知道
    yum install libgcc.i686 //重新装libgcc.i686包
  • 由于没有安装成功导致也无法安装i686,不过我选择继续后续安装,在本机系统中,未安装i686不影响软件安装和使用
    yum install glibc.i686
    yum install freetype.i686
    yum install libSM.i686
    yum install libXext.i686
    ./start_navicat //重新启动,看是否有反应

发现这个时候我的系统还是启动不了,我直接运行下面yum就可以了:
yum install alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake portaudio-devel.i686 openal-soft-devel.i686 audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 libXxf86dga-devel.i686 libXxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel ImageMagick-devel.i686 openal-soft-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc
yum install alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel openal-soft-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686 libmpg123-devel.i686

5.Navicat破解
第一次执行start_navicat时,会在用户主目录下生成一个名为.navicat的隐藏文件夹,注意64位系统为.navicat64。
cd /home/xxx/.navicat/
此文件夹下有一个system.reg文件
rm system.reg
把此文件删除后,下次启动navicat 会重新生成此文件,15天试用期会按新的时间开始计算。

觉得很赞
亿速云
您需要登录后才可以评论。登录 | 立即注册