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

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

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


http://brantc.blog.51cto.com/410705/514899

4.install libssh2 net::ssh2

  http://pkgs.repoforge.org/perl-Net-SSH2/                           perl-Net-SSH2-0.31-1.el5.rf.x86_64.rpm   
http://rpmfind.net/linux/rpm2html/search.php?query=libssh2-devel/
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 

http://www.libssh2.org/download/
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
http://javatechnology.iteye.com/blog/1539646

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
  

猜你喜欢

转载自maxer025.iteye.com/blog/1579938