Install doris and related software in Ubuntu

Source: Internet
Author: User
Tags gfortran
Installing open-source software such as doris is still simple in linux, but the first one is to carefully read the instructions on the doris homepage. Most software packages have some prerequisites. Due to apt Management In debian and Ubuntu, It is very convenient to install the software package first. The following explains how to install doris and related software in ubuntu step by step. The installation environment is ubutu11.04amd64. 0) before the installation, gcc, g ++, and make software should have been installed. If you are not sure, run the following command to install Open-source professional software such as doris, which is simple in linux, however, the first step is to carefully read the instructions on the doris homepage. Most software packages have some prerequisites. Due to apt Management In debian and Ubuntu, It is very convenient to install the software package first.
The following explains how to install doris and related software in ubuntu step by step. The installation environment is ubutu11.04 amd64.

0) The software gcc, g ++, and make should have been installed before installation. If you are not sure, run the following command.

Code:$ Sudo apt-get install gcc g ++ make
1) download the doris and fftw packages and place them under your own home directory.

I downloaded doris_v4.02.tar.gzand fftw-3.3.tar.gz.

Download the fftw-3.3.tar.gzand fftw-3.3.tar.gz software.

Free onHttp://linux.linuxidc.com/

Both the user name and password areWww.linuxidc.com

The specific download directory is in/Pub/2011/06/21/Ubuntu installation of doris and related software tutorials/


2) decompress doris first, and then decompress fftw in the doris directory so that the fftw directory is in the doris directory. Because doris4.02 needs fftw-3.2.1, you also need to change the fftw name. The following are the operation commands.

Code:$ Tar xzfv doris_v4.02.tar.gz
// The doris_v4.02 directory is automatically generated, and the file is in the doris_v4.02 directory.
$ Cd doris_v4.02
$ Cp ../fftw-3.3.tar.gz.
// Copy the downloaded fftw-3.3.tar.gz file to the current directory.
$ Tar xzfv fftw-3.3.tar.gz
// Extract
$ Mv fftw-3.3/fftw-3.2.1/
// Rename the Directory

3) Compile and install the fftw library and doris

Code:$ Cd fftw-3.2.1/

$./Configure -- prefix = 'pwd' -- enable-float

Note: -- prefix = 'pwd' is the oblique float on the side of number 1 on the keyboard.

In this step, the configure option can be further optimized. Our current machine supports sse, And the cpu is multi-core. You can add the -- enable-sse and -- with-combined-threads options, that is, the following command.

$./Configure -- prefix = 'pwd' -- enable-float -- enable-sse -- with-combined-threads

// Special, if it is a 32-bit linux system, with amd cpu, you can add -- enable-k7

 

$ Make
$ Make install
// Compile and install, note that the -- prefix = 'pwd' option ensures that the fftw library is directly installed in pwd, that is, the current fftw-3.2.1 directory, doris will directly find fftw in its own directory during compilation.
Compile and install doris. The author asked us to compile doris in the tcsh environment. I have tried to compile it directly under bash. Here we still finish it in tcsh according to the author's requirements. Therefore, install a tcsh before installing doris.
Code:$ Sudo apt-get install tcsh
$ Cd ..
// Return to the doris directory

$ Tcsh

$ Cd src

// Enter the src directory under doris

$./Configure

// The answer should be one-way carriage return, g ++, fftw lib, include, and other three questions are critical and can be automatically completed. If there is an exception, check the previous steps. Other keys can be entered.

$ Make
$ Sudo make install

// The root permission is required for the last step to install doris to/usr/local/bin.

$ Exit

// Exit tcsh after installation.


In this way, you have installed doris.

4) The following are some applications: SARtools and ENVISAT_TOOLS. The source code is in the doris directory.

Three simple steps of SARtools
Code:

$ Cd doris_v4.02/SARtools

$ Make
$ Sudo make install

I am using 64-bit ubuntu, ENVISAT_TOOLS needs to install libc-dev-i386 first
Code:$ Sudo apt-get install libc6-dev-i386
Then make and sudo make install

Code:

$ Cd doris_v4.02/ENVISAT_TOOLS

$ Make

$ Sudo make install

5) The following are getorb, snaphu, and GMT.

The doris home page download page (http://doris.tudelft.nl/Doris_download.html) has links to getorb and snaphu

Snaphuand getorbsoftware download getorb_2.3.2.tar.gzand snaphu-v1.4.2.tar.gz.

Free onHttp://linux.linuxidc.com/

Both the user name and password areWww.linuxidc.com

The specific download directory is in/Pub/2011/06/21/Ubuntu installation of doris and related software tutorials/

Decompress the downloaded software and enter the decompressed directory. The commands are not repeated and the installation points are given directly.

Getorb needs to be compiled using fortran. First install a fortran package
Code:$ Sudo apt-get install gfortran
$ Vi Makefile
// Modify Makefile to find the FC = gfortran line and delete the # sign (vi operation: move the cursor to #, Press x, esc, colon, and wq to save and exit .)
Then make and sudo make install

Snaphu has minor problems when installing the man file. Solution: create a directory before installation:
Code:$ Sudo mkdir/usr/local/man/man1 then it's easy to go To the src directory, make and sudo make install.

You can directly use apt-get to install the GMT package,
Code:$ Sudo apt-get install gmt

6) The execution files of the above software are installed under/usr/local/bin. Go to the directory and check whether there are several files with no execution permissions. Add execution permissions.

Code:$ Cd/usr/local/bin
$ Sudo chmod 755 *.*
$ Sudo chmod 755 *

7) to read tsx images, install software packages such as gdal, python, libxml2, python-lxml, and lib1_t1 and use the apt-get command directly.

Code:$ Sudo apt-get install gdal-bin libxslt1.1 python-lxml python libxml2

8) install php2010a.
Download the original file named [matrix lab \]. Mathworks. Matlab. R2010a. UNIX.ISO-TBE. iso matlab. iso for linux
First, change the iso file name:
Code:$ Mv \ [matrix lab \]. Mathworks. Matlab. R2010a. UNIX.ISO-TBE. iso matlab. iso
Mounting iso
Code:$ Sudo mount-t iso9660-o ro, loop =/dev/loop0 related path/matlab. iso/mnt
Solve the problem that libc. so.6 cannot be found before installing matlab
Code:$ Sudo ln-s/lib64/x86_64-linux-gnu/libc. so.6/lib/libc. so.6
Go to the relevant directory and run the installer.
Code:$ Cd/mnt
$./Install

After installation, there is another issue of establishing the execution link:

1) if it is installed in a directory such as/usr, right-click it on the desktop, create a starter, and enter gksudo 'matlab installation directory/bin/Matlab-desktop 'in the command;

2) if you install it in your login directory, right-click the desktop, create the starter, and enter the Matlab installation directory/bin/matlab-desktop in the Command;

In addition, you can set the Chinese font in file-perferences-fonts in matlab.


9)stampsinstallation, download stamps_v3.2.1.tar.gz.
Code:

$ Tar xfzv StaMPS_v3.2.1.tar.gz

Enter StaMPS_v3.2.1

$ Cd StaMPS_v3.2.1

$ Make
$ Sudo make install
This completes all the tasks.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.