linux5.1用5.4的包怎么装不上谷歌服务安装包

环境:CentOS7,MySQL5.5
1.MySQL5.5源码下载
& Oracle的网站打开较慢,/mysql/这里提供了MySQL的镜像。一般的,Linux的程序安装有两种方式:A利用RPM,YUM等工具 B手动安装。其中手动安装又有两种方式,一种是直接下载已经编译好的二进制文件,另一种是下载源码手动编译。我们这里尝试下载源码手动编译的方式。
& 如何区分下载文件列表的文件是已编译好的二进制文件,还是源码文件:
A.文件大小。由于从源码编译为二进制文件,会利用到一些静态链库。因此一般的源码文件比编译好二进制文件要小。
B.文件名。因为不同的平台编译出的二进制文件不一样,因此一般的编译好的二进制文件的包名里会明确写出该包适用的平台。例如。而源码一般不会这样写。
C.将下载的文件解包后,如果有bin文件夹,一般可以说明该文件包是编译好的二进制文件。
2.编译源码
MySQL从5.5开始使用cmake&编译工具。首先安装cmake:yum install cmake
创建一个MySQL用户 &&
1 #groupadd mysql
2 #useradd -g mysql mysql
解包:在/usr/local/src下将tarball解开
1 #tar -zxvf mysql-5.5.14.tar.gz
构建Makefile文件
1 #cd mysql-5.5.14/
2 #cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5.5 \
3 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
4 -DDEFAULT_CHARSET=utf8 \
5 -DDEFAULT_COLLATION=utf8_general_ci \
6 -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk \
7 -DWITH_MYISAM_STORAGE_ENGINE=1 \
8 -DWITH_INNOBASE_STORAGE_ENGINE=1 \
9 -DWITH_MEMORY_STORAGE_ENGINE=1 \
10 -DWITH_READLINE=1 \
11 -DENABLED_LOCAL_INFILE=1 \
12 -DMYSQL_DATADIR=/var/mysql/data \
13 -DMYSQL_USER=mysql
14 -DSYSCONFDIR=/etc # mysql配置文件 my.cnf的存放地址,默认为/etc下
15 -DMYSQL_TCP_PORT=3306 # 数据库服务器监听端口,默认为3306
16 -DWITH_SSL=yes # 支持 SSL
17 -DMYSQL_USER=mysql # 默认为mysql
19 //下面3个是数据库编码设置
20 -DEXTRA_CHARSETS=all # 安装所有扩展字符集,默认为all
21 -DDEFAULT_CHARSET=utf8 # 使用 utf8 字符
22 -DDEFAULT_COLLATION=utf8_general_ci # 校验字符
24 //下面5个是数据库存储引擎设在
25 -DWITH_MYISAM_STORAGE_ENGINE=1 # 安装 myisam 存储引擎
26 -DWITH_INNOBASE_STORAGE_ENGINE=1 # 安装 innodb 存储引擎
27 -DWITH_ARCHIVE_STORAGE_ENGINE=1 # 安装 archive 存储引擎
28 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 # 安装 blackhole 存储引擎
29 -DWITH_PARTITION_STORAGE_ENGINE=1 # 安装数据库分区
//在这个过程中,可能会因为缺少某些包而报错,参照报错信息用YUM安装相关的包,然后删除Makefile.txt,重新构建。这个步骤在错误信息中有详细说明
2 #make install
3.创建数据库
设置配置文件
#cp support-files/my-medium.ini
/etc/my.cnf
//MySQL提供了my-small.ini、my-medium.ini、my-large.ini、my-huge.ini几个文件,根据实际环境选择合适的文件作为参考
4 // Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/mysql5.5/data
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/mysql5.5/data
# default-storage-engine=InnoDB
# user = mysql
其他的配置根据实际情况调整,在重启MySQL后生效
创建数据库
1 # ./scripts/mysql_install_db --basedir=/usr/local/mysql5.5 --datadir=/var/mysql5.5/data 2 # export PATH=/usr/local/mysql5.5/bin:$PATH
启动/关闭数据库
1 # ./bin/mysqld_safe &//说明A.数据库在启动的时候,会打出这样一个信息:mysqld_safe Logging to '/usr/local/mysql5.5/data/localhost.err如果数据库启动不成功,可以参照这个Log的信息查找具体原因,例如:/usr/local/mysql5.5/bin/mysqld: File './mysql-bin.000004' not found (Errcode: 13)这个问题是由文件权限引起的,我们在安装过程中由于在root和mysql及其它用户间切来切去,导致mysql用户没有正确的权限访问文件解决方法#chown -R mysql:mysql /usr/local/mysql5.5
//注意-R的参数B.即使数据库正常启动,A中所说的Log中的某些警告信息同样具有参考价值
2 # ./bin/mysqladmin -u root -p shutdown
连接数据库
-h localhost -u root -p
编辑PATH。将MySQL的 PATH编辑进系统配置文件
1 //对系统的所有用户都生效
2 #/vi /etc/profile
3 PATH=/usr/local/mysql5.5/bin:$PATH
5 //只对当前用户生效
7 $vi bash_profile
8 PATH=/usr/local/mysql5.5/bin:$PATH
发生的一些错误
& & & & 1. 'Access denied for user 'root'@'localhost' (using password: YES)':
& & & & 发生原因,没有正确设置root的密码,如果直接连接数据库&mysql -u root,并执行select password from user where user='root',
& & & & 会发现查到的password都为空。在这种情况下,如果不重新设置password,那么可以执行#mysql -h localhost -u root -p,然后在需要输入密码的时候,直接回车就可以Login了,因为root的密码本来就为空。当然,最好还是重新设置一下root密码。
阅读(...) 评论()mysql5.1X升级到5.5过程
&手上有一朋友的服务器是mysql5.1,因需要升级到5.5或以上,这儿写下升级到5.5的过程
安装5.5依赖安装包
yum install -y autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool* openssl*
yum install -y cmake
下载官方mysql5.5源码包
wget /get/Downloads/MySQL-5.5/mysql-5.5.36.tar.gz
在升级前,建议先将之前5.1的mysql及数据库目录备份一下
停止掉mysql
service mysql stop
升级mysql 5.5.36
tar xf mysql-5.5.36.tar.gz
cd mysql-5.5.36
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc -DMYSQL_DATADIR=/usr/local/mysql/var -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DMYSQL_USER=mysql -DEXTRA_CHARSETS=all -DWITH_READLINE=1 -DWITH_SSL=system -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1
make && make install
删除/etc/下的my.cnf配置文件
拷贝5.5的配置文件
cp support-files/f /f
尝试启动一下
service mysql start
执行更新程序并重启mysql
/usr/local/mysql/bin/mysql_upgrade
如果一路OK就没事儿,但要是出了错误,请参考我另外一篇文章&[1]&&&
【声明】:黑吧安全网()登载此文出于传递更多信息之目的,并不代表本站赞同其观点和对其真实性负责,仅适于网络安全技术爱好者学习研究使用,学习中请遵循国家相关法律法规。如有问题请联系我们,联系邮箱,我们会在最短的时间内进行处理。
上一篇:【】【】博客访问: 906436
博文数量: 457
博客积分: 6240
博客等级: 准将
技术积分: 4903
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: LINUX
21:38& & redhat 5.4无法使用yum来在线安装软件(挂载光驱来装也行),因为RedHat与CentOS的内核是一样的,只是不同的发行版而已,首先,rhel5系统安装的时候其实已经有yum了,只是因为如果用官方的网站更新的话除非你是用钱买的rhel5.否则它会提示注册之类的。所以只要把 yum的更新地址改成开源的就行了。而限定yum更新地址的文件在/etc/yum.repos.d/里。先把它们改成备份文件,即在后面加.bak。&操作步骤:[root@killgoogle ~]# mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.bak&[root@killgoogle ~]# mv /etc/yum.repos.d/rpmforge.repo.rpmnew /etc/yum.repos.d/rpmforge.repo.rpmnew.bak&建立新的配置文件:&[root@killgoogle ~]# cd /etc/yum.repos.d&[root@killgoogle ~]# touch rhel-debuginfo.repo&[root@killgoogle ~]# touch mirrors-rpmforge&[root@killgoogle ~]# touch rpmforge.repo&往新的配置文件写东西:&[root@killgoogle ~]#vi rhel-debuginfo.repo&[base]&name=CentOS-5 - Base&#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os&#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/baseurl=http://ftp./centos/5/os/$basearch/gpgcheck=1&gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#released updates&[update]&name=CentOS-5 - Updates&#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updatesbaseurl=http://ftp./centos/5/updates/$basearch/gpgcheck=1&gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#packages used/produced in the build but not released&[addons]&name=CentOS-5 - Addons&#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addonsbaseurl=http://ftp./centos/5/addons/$basearch/gpgcheck=1&gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#additional packages that may be useful&[extras]&name=CentOS-5 - Extras&#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extrasbaseurl=http://ftp./centos/5/extras/$basearch/gpgcheck=1&gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#additional packages that extend functionality of existing packages&[centosplus]&name=CentOS-5 - Plus&#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplusbaseurl=http://ftp./centos/5/centosplus/$basearch/gpgcheck=1&enabled=0&gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5#contrib - packages by Centos Users&[contrib]&name=CentOS-5 - Contrib&#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contribbaseurl=http://ftp./centos/5/contrib/$basearch/gpgcheck=1&enabled=0&gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5# vi dag.repo&[dag]&name=Dag RPM Repository for RHEL5&baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/enabled=1&gpgcheck=1&gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt修改第二个配置文件:&[root@killgoogle ~]vi mirrors-rpmforge&http://apt.sw.be/redhat/el5/en/$ARCH/daghttp://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/daghttp://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag#http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/daghttp://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/daghttp://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/daghttp://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/daghttp://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/daghttp://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/daghttp://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/daghttp://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag修改第三个配置文件:&[root@killgoogle ~]# vi rpmforge.repo&# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag&# URL: http://rpmforge.net/[rpmforge]&name = Red Hat Enterprise $releasever - RPMforge.net - dag&#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dagmirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge&enabled = 1&protect = 0&gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag&gpgcheck = 1&如果风速慢的话可以通过增加yum的超时时间,这样就不会总是因为超时而退出。&[root@killgoogle ~]vi /etc/yum.conf&加上这么一句:timeout=120&到这里配置差不多就完了。还有一个包需要安装:rpmforge-release-0.3.6-1.el5.rf.i386.rpm&如果不安装的话有可能会出现以下错误:GPG key retrieval failed: [Errno 5] OSError: [Errno 2] 没有那个文件或目录: '/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag'&到http://rpmfind.net/linux/RPM/找到这个包,然后&[root@killgoogle ~]rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm&接下来就是输入KEY了。&[root@killgoogle ~] rpm --import /centos/RPM-GPG-KEY-CentOS-5这样基本上yum就可以用了。不过如果觉得不爽的话还可以优化:&加速yum&[root@killgoogle ~]yum install yum-fastestmirror yum-presto&指定或去掉软件源的mirror:&可以在baseurl中将比较慢的mirror去掉&你的yum镜像的速度测试记录文件:&/var/cache/yum/timedhosts.txt&yum Existing lock 错误的解决办法&如果系统启动的时候, yum 出现Existing lock /var/run/yum.pid: another copy is running as pid 3380. Aborting. 可以用下面的办法解决:&[root@killgoogle ~]/etc/init.d/yum-updatesd stop&也可以用以下方法:&[root@killgoogle ~]rm -f /var/run/yum.pid&主要原因就是yum在自动更新只要关掉它就可以了。注意:& &配置文件的内容可以修改,内容可能不完全对(到对应的路径去查询软件包),可以根据其他centos的对应的配置文件来参考。如果下载超时,就修改/etc/yum.conf,增加:timeout=120通过google搜索该文件,rpmforge-release-0.3.6-1.el5.rf.i386.rpm下载之后rpm掉。其中操作步骤按照下面的文章来,建配置文件。最后直接拿centos的/etc/yum.repos.d/CentOS-Base.repo,来代替redhat /etc/yum.repos.d/rhel-debuginfo.repo那按照文章中的两个不变。最后在安装软件的时候,根据提示,可以选择性的去centos上去removing mirrorlist with no valid mirrors: /var/cache/yum/extras/mirrorlist.txt & & & & & & & &&& /var/cache/yum/updates/mirrorlist.txt&/var/cache/yum/addons/mirrorlist.txt等文件。******************************************************************************************************************************************************************安装的时候报错:warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897解决办法是:#vi &/etc/yum.repos.d/CentOS-Base.repo&修改内容: changed the gpgcheck=1 to gpgcheck=0 for all the lines即:把gpgcheck=1全部改为gpgcheck=0保存退出即可!******************************************************************************************************************************************************************[root@localhost yum.repos.d]# yum -y install vsftpd&Loaded plugins: rhnplugin, securityThis system is not registered with RHN.RHN support will be disabled.YumRepo Error: All mirror URLs are not using ftp, http[s] or file.&Eg. 5Server is not a valid release or hasnt been released yet/removing mirrorlist with no valid mirrors: /var/cache/yum/addons/mirrorlist.txtYumRepo Error: All mirror URLs are not using ftp, http[s] or file.&Eg. 5Server is not a valid release or hasnt been released yet/removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txtError: Cannot find a valid baseurl for repo: base然后我从centos 5.5 180.168.69.46这台服务器上scp过来文件,就可以了。[root@localhost packages]# scp -P 2022 root@180.168.69.46:/var/cache/yum/base/mirrorlist.txt /var/cache/yum/base/[root@localhost packages]# scp -P 2022 root@180.168.69.46:/var/cache/yum/addons/mirrorlist.txt /var/cache/yum/addons/******************************************************************************************************************************************************************&
阅读(2669) | 评论(0) | 转发(1) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。新手园地& & & 硬件问题Linux系统管理Linux网络问题Linux环境编程Linux桌面系统国产LinuxBSD& & & BSD文档中心AIX& & & 新手入门& & & AIX文档中心& & & 资源下载& & & Power高级应用& & & IBM存储AS400Solaris& & & Solaris文档中心HP-UX& & & HP文档中心SCO UNIX& & & SCO文档中心互操作专区IRIXTru64 UNIXMac OS X门户网站运维集群和高可用服务器应用监控和防护虚拟化技术架构设计行业应用和管理服务器及硬件技术& & & 服务器资源下载云计算& & & 云计算文档中心& & & 云计算业界& & & 云计算资源下载存储备份& & & 存储文档中心& & & 存储业界& & & 存储资源下载& & & Symantec技术交流区安全技术网络技术& & & 网络技术文档中心C/C++& & & GUI编程& & & Functional编程内核源码& & & 内核问题移动开发& & & 移动开发技术资料ShellPerlJava& & & Java文档中心PHP& & & php文档中心Python& & & Python文档中心RubyCPU与编译器嵌入式开发驱动开发Web开发VoIP开发技术MySQL& & & MySQL文档中心SybaseOraclePostgreSQLDB2Informix数据仓库与数据挖掘NoSQL技术IT业界新闻与评论IT职业生涯& & & 猎头招聘IT图书与评论& & & CU技术图书大系& & & Linux书友会二手交易下载共享Linux文档专区IT培训与认证& & & 培训交流& & & 认证培训清茶斋投资理财运动地带快乐数码摄影& & & 摄影器材& & & 摄影比赛专区IT爱车族旅游天下站务交流版主会议室博客SNS站务交流区CU活动专区& & & Power活动专区& & & 拍卖交流区频道交流区
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
本帖最后由 zhkdy 于
10:41 编辑
用的虚拟机,安装JDK、TOMCAT这两项都很顺利,接下来mysql需要的三个库,安装第一个gmp就出问题。
最初在安装CentOS时,图形界面安装,按默认选项,四个选项中,只安装了第一个,好象desktop。gmp安装不上去,第二次重新安装,把server(第三项加上)里,加上了常用的选项(FTP/www/mysql……等等其它一些),无论用gmp-5.0.0,或者gmp-4.3.2,均无法安装gmp,查了很多资料,依旧无法解决。出现如下提示:
[root@localhost local]# ls
bin&&etc&&games&&include&&lib&&libexec&&sbin&&share&&src&&tomcat-6
[root@localhost local]# ls
bin&&etc&&games&&include&&lib&&libexec&&sbin&&share&&src&&tomcat-6
[root@localhost local]# cd src
[root@localhost src]# ls
apache-tomcat-6.0.32.tar.gz
flash-plugin-10.2.159.1-release.i386.rpm
gcc-4.5.0.tar.gz
gmp-5.0.0.tar.bz2
jdk-6u24-linux-i586.rpm
jdk-6u24-linux-i586-rpm.bin
mpc-0.8.1.tar.gz
mpfr-2.4.2.tar.bz2
mysql-5.1.30
mysql-5.1.30.tar.gz
sun-javadb-client-10.6.2-1.1.i386.rpm
sun-javadb-common-10.6.2-1.1.i386.rpm
sun-javadb-core-10.6.2-1.1.i386.rpm
sun-javadb-demo-10.6.2-1.1.i386.rpm
sun-javadb-docs-10.6.2-1.1.i386.rpm
sun-javadb-javadoc-10.6.2-1.1.i386.rpm
xf86-video-intel-2.4.0
[root@localhost src]# cd gmp-build
[root@localhost gmp-build]# ../gmp-5.0.0-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
bash: ../gmp-5.0.0-5.0.0/configure: 没有那个文件或目录
[root@localhost gmp-build]# ../gmp-5.0.0-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
bash: ../gmp-5.0.0-5.0.0/configure: 没有那个文件或目录
[root@localhost gmp-build]# ../gmp-5.0.0-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
bash: ../gmp-5.0.0-5.0.0/configure: 没有那个文件或目录
[root@localhost gmp-build]# ../gmp-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
[root@localhost gmp-build]# ls
cnfm4i.tmp&&cnfm4p.tmp&&cnfm4.tmp&&config.log
[root@localhost gmp-build]# ls
cnfm4i.tmp&&cnfm4p.tmp&&cnfm4.tmp&&config.log
[root@localhost gmp-build]# ../gmp-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
[root@localhost gmp-build]# ../gmp-4.3.2/configure --prefix=/usr/local/gmp-4.3.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
You have mail in /var/spool/mail/root
[root@localhost gmp-build]# ls
cnfm4i.tmp&&cnfm4p.tmp&&cnfm4.tmp&&config.log
[root@localhost gmp-build]#
&&nbsp|&&nbsp&&nbsp|&&nbsp&&nbsp|&&nbsp&&nbsp|&&nbsp
论坛徽章:379
楼主修改下,图片没上传?
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
本帖最后由 zhkdy 于
10:50 编辑
虚拟机下,网慢……回到windows平台下来写这个,相对快多了,虚拟机下没装五笔输入法,还真不习惯。
有些解压,是在图形界面下完成的。因为是新手,刚接触不久,老平台习惯一时还丢不了,慢慢改正:)
gmp-5.0.0装不上,后来照网上资料,安装gmp-4.3.2,依旧一个样……卡在这里快一周了,就是下不去……郁闷!主要目的就是为了装个MYSQL!
论坛徽章:379
configure: error: could not find a working compiler, see config.log for details
楼主没有安装gcc.
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
GCC不是要选装GMP的么?我试试……先谢过楼上……
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
不过,还有个更郁闷的问题……软件包更新以后,顶上的系统图标不见了,本来么,不使用图标也可以,不过发现最小化窗口以后,再想把最小化的窗口翻出来,屏上就没找不到在哪了……估计和显卡有关系?
论坛徽章:379
楼主是centos,建议用yum install gcc来安装gcc.
前提是虚拟机可以上网
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:38 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:40 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:42 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:44 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:46 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:48 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:50 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:52 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
& & Memory :&&41 M RSS ( 96 MB VSZ)
& & Started: Thu Apr 21 04:30:53 2011 - 14:54 ago
& & State&&: Sleeping, pid: 2939
Another app is currently
waiting for it to exit...
&&The other application is: pup
虚拟机可以上网的,不过,用您上面的方法,出现如上情况,请问是正常的么?
我是刚接触linux,初学的时候真是费力……
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
已经下载好了gcc-4.5
白手起家, 积分 21, 距离下一级还需 179 积分
论坛徽章:0
重新下载gmp-4.3.2.tar.gz 解压到gmp-4.3.2
新建gmp-build文件夹,并在这个文件夹下执行
../gmp-4.3.2/configure --prefix=/usr/local/gmp-4.3.2
结果如下,请高手指点一下,哪里做错了?
[root@localhost src]# ls
apache-tomcat-6.0.32.tar.gz
flash-plugin-10.2.159.1-release.i386.rpm
gcc-4.5.0.tar.gz
gmp-4.3.2.tar.gz
gmp-5.0.0.tar.bz2
jdk-6u24-linux-i586.rpm
jdk-6u24-linux-i586-rpm.bin
mpc-0.8.1.tar.gz
mpfr-2.4.2.tar.bz2
mysql-5.1.30
mysql-5.1.30.tar.gz
sun-javadb-client-10.6.2-1.1.i386.rpm
sun-javadb-common-10.6.2-1.1.i386.rpm
sun-javadb-core-10.6.2-1.1.i386.rpm
sun-javadb-demo-10.6.2-1.1.i386.rpm
sun-javadb-docs-10.6.2-1.1.i386.rpm
sun-javadb-javadoc-10.6.2-1.1.i386.rpm
xf86-video-intel-2.4.0
[root@localhost src]# cd gmp-build
[root@localhost gmp-build]# ls
[root@localhost gmp-build]# ../gmp-4.3.2/configure --prefix=/usr/local/gmp-4.3.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
[root@localhost gmp-build]#
北京皓辰网域网络信息技术有限公司. 版权所有 京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:
广播电视节目制作经营许可证(京) 字第1234号
中国互联网协会会员&&联系我们:
感谢所有关心和支持过ChinaUnix的朋友们
转载本站内容请注明原作者名及出处

我要回帖

更多关于 uddi服务安装包下载 的文章

 

随机推荐