Red Hat Enterprise Linux 5安装gcc

本文全是如何用rpm包在红帽子5上安装gcc,automake,java和eclipse等,不是源代码编译。

1) For gcc-4.1.2.44:

rpm -ivh libgomp-4.3.2-7.el5.x86_64.rpm

rpm -ivh kernel-headers-2.6.18-308.el5.x86_64.rpm

rpm -ivh glibc-headers-2.5-34.x86_64.rpm

rpm -ivh glibc-devel-2.5-34.x86_64.rpm

rpm -ivh gcc-4.1.2-44.el5.x86_64.rpm

[url]http://hi.baidu.com/luxey/blog/item/f111f23ecd3935e6828b1396.html[/url]

2) After step 1, for gcc-c++-4.1.2.44

rpm -ivh libstdc++-devel-4.1.2-44.el5.x86_64.rpm

rpm -ivh gcc-c++-4.1.2-44.el5.x86_64.rpm

3. After step 2, for automake-1.9.6-2.1.noarch.rpm

rpm -ivh imake-1.0.2-3.x86_64.rpm

rpm -ivh autoconf-2.59-12.noarch.rpm

rpm -ivh automake-1.9.6-2.1.noarch.rpm


[url]http://brantc.blog.51cto.com/410705/514899[/url]

4.install libssh2 net::ssh2

[url]http://pkgs.repoforge.org/perl-Net-SSH2/[/url] perl-Net-SSH2-0.31-1.el5.rf.x86_64.rpm
[url]http://rpmfind.net/linux/rpm2html/search.php?query=libssh2-devel/[/url]
libssh2-devel-1.2.9-7.1.3.x86_64.rpm

openssl-devel-0.9.8e-22.el5_8.3.x86_64.rpm
openssl-0.9.8e-22.el5_8.3.x86_64.rpm

[url]http://www.libssh2.org/download/[/url]
libssh2-1.2.9.tar.gz


RPM下载URL:
1 http://rpmfind.net/
2 http://pkgs.org/
3 http://rpm.pbone.net/
4 http://autoinstall.plesk.com/PSA_9.2.1/update-rpm-RedHat-el5-x86_64/
5 ftp://ftp.muug.mb.ca/mirror/centos/5.8/os/x86_64/CentOS/
6 http://www.goobye.net/ftphtml/211_154_255_150/801C3CA8CF3C249A6CB1EEE0A59E9A03_32.shtml


源码编译法安装 ssh2
[url]http://javatechnology.iteye.com/blog/1539646[/url]

ssh用源码编译时libcrypto.a: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value

查了下资料说是openssl的问题,要编译成shared,所以用如下参数编译openssl
./config --prefix=/usr/local/ssl --enable-shared
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值