Monday, January 29, 2018

Install Centos and CRTM

Refresher (Last time I used Linux is 4 months ago and I almost forgot everything)
  • robo vm is 3 GB .vmdk file, password: robo-nd
  • open terminal: ctrl + option + t
main take-away:
  1. use stable version of VirtualBox(older version)
  2. use ready-to-use version of centos VM. So you have GUI and Firefox.

install on Mac OS, fail

cd config-setup
chmod u+x gfortran.setup  # change user access to write
./gfortran.setup   # source some shell code
source config-setup/gfortran-debug.setup
## following is error, setenv may be linux command
-bash: setenv: command not found
-bash: setenv: command not found
-bash: setenv: command not found
-bash: setenv: command not found
cp Makefile.in Makefile # **.in is for linux
make
./config.status --recheck
make: ./config.status: No such file or directory
make: *** [config.status] Error 1

install on Ubuntu, fail

cd config-setup
chmod u+x gfortran-debug.setup
cd ..
./configure --prefix=/bin/
# configure ...
make
# recipe for target "CRTM_CloudCover_Efine.o" failed
# recipe for target "all" failed
make check
# Error 2
gfortran --version
# GNU Fortran (Ubuntu 5.4.0)  5.4.0
gcc --version
# gcc (Ubuntu 5.4.0)  5.4.0

install on Centos 7 DVD ISO, but no GUI

install virtual box on macOS High Sierra

www.centos.org/download/
University of Oklahoma Open Source Software Mirror: http://mirror.oss.ou.edu/
Virtual Box 5.2.6 doesn’t work on macOS High Sierra. Use VirtualBox 5.2.4. https://www.virtualbox.org/wiki/Download_Old_Builds_5_2
Installation failure? System configuration -> Seurity & Privacy -> authroize changes ( the lock sign)

install centos on virtual box

Installing Centos 7 on VirtualBox: https://www.youtube.com/watch?v=O1nF7HQAJGw
Virtual box - new -> name: centos7 -> next -> 2048 MB->create a virtual hard disk now -> Hard disk file type: VDI -> dynamically allocated
Localhost login: root
Password: wnixxxxxxx

add user

adduser yuchao
passwd yuchao
usermod -aG wheel username
CentOS 使用 yum,Ubuntu 使用 apt-get,近些年又出现了一些与发行版无关的第三方包管理器,比如 Linuxbrew.
The problem is no GUI, so inconvenient to use. May try everything ISO next time.

install on Centos, ready-to-use VirtualBox by OSBoxes, success!

Centos 7-1708, password: osboxes.org
transfer file?
df -h
ping 10.205.224.189
scp jiang@10.205.224.180:./*.sh .
# connection refused
directly download from official website
sudo yum install gcc-gfortran
gfortran --version
# GNU Fortran (GCC) 4.8.5 (Red Hat 4.8.5-16)
gcc --version
# gcc (GCC) 4.8.5 (Red Hat 4.8.5-16)
cd config-setup
chmod u+x gfortran-debug.setup
cd ..
./configure --prefix=/bin/
make
make check
sudo make install
make clean

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.