CentOS7 安装Navicat [ 2.0 版本 ]
相关环境:CentOS7 64位
参考地址:
http://blog.csdn.net/u011402032/article/details/53843999
http://blog.csdn.net/u010824591/article/details/50496553
http://tieba.baidu.com/p/3388352452
我自定义安装在以下目录:
[root@spark Desktop]$ mkdir -p /data/navicat #新建文件夹,放Navicat的安装目录
1.关闭防火墙
第一步关掉linux的防火墙,由于自己之前没有关闭防火墙导致navicat启动不了,在这个地方卡了很久。
1)关闭SELINUX
打开/etc/selinux/config
在文件中加入SELINUX=disabled
上面加入保存之后 需要重启才能生效
2)关闭防火墙
service iptables stop(临时关闭)
chkconfig iptables off(永久关闭)
2.安装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
3.安装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 -e |grep libgcc-4.8.5-4.el7.x86_64 //删除
yum install libgcc.i686 //重新装libgcc.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
xyf90314
最后登录:2023-03-13
在线时长:95小时23分
- 粉丝21
- 金钱5257
- 威望40
- 积分6607
共 0 条评论