2018年6月9日 星期六

GMT 在CentOS 6下 EPEL套件是gmt4


先講結論
1. CentOS 6 下EPEL 套件是gmt4
   也可以用yum 輕鬆安裝,不用重新編譯的老方法
    CentOS 6 安裝GMT5 要自己編譯
3. CentOS 7反之, EPEL 套件是GMT5
    要用gmt4 要自己編譯

################################################

因為CentOS 7 在yum 下很容易安裝GMT5
手賤嘗試CentOS 6 的機器下安裝, 但是裝起來是gmt4版
過程中搞到原來gmt4版也不能run, 影響原本routine jobs! 很煩惱
又要重新編譯了~~~
後來看到此文, 立馬又恢復
https://www.linuxquestions.org/questions/linux-newbie-8/installing-gmt-generic-mapping-tools-in-centos6-4175526545/
##########################################
Dear all,
I just found the solution 
it's because of rpm:
first off all I did this:
cd /etc/yum.repos.d/
I just keep these :
CentOS-Base.repo CentOS-Media.repo
CentOS-Debuginfo.repo CentOS-Vault.repo
CentOS-fasttrack.repo

and then deleted others.(it's importatnt do keep JUST CENTOS REPO at this step)

second: I updated Cent by yum update
third: I restarted Cent
forth: yum remove GMT
yum remove epel-release (if it exit)
fifth : it's important to delet all of hdf5* library that I installed befor
so I did this : yum remove hdf5*


after all I installed epel again : yum install epel-release
then I installed GMT : yum install GMT

it's amazing friend!! 
#######################



沒有留言:

張貼留言