Wednesday, 12 March 2014

nfs mount : no route to host

On the nfs host, do as instructed in the following link

http://notepad2.blogspot.kr/2012/04/mountnfs-mount-to-nfs-server-failed.html

Tuesday, 4 March 2014

Error regarding compiler conflict in mpich installation with fortran support

Error:

The selected Fortran 90 compiler /usr/bin/gfortran does not work with the selected Fortran 77 compiler ....

This happens when you have both fort77 and gfortran installed on your machine. As a solution, use variables F77 and F90 both pointing to the gfortran. The configure command should look like;

$./configure --prefix=<install-dir> --enable-f77 FC=/usr/bin/gfortran    F77=/usr/bin/gfortran


Installing fortran compilers

to install gfortran:

$ sudo apt-get install gfortran


to install f77

$ sudo apt-get install fort77


Monday, 30 December 2013

sudo does not modify file - permission denied

see this

Quote: "This is a common problem with sudo and shell redirection. The "sudoness" doesn't propagate past the redirection. One way to get around it is"

sudo bash -c "echo 0 > /path/to/file"

Tuesday, 23 July 2013

find the version of ODROID

Following command does the work

$ cat /proc/cpuinfo | grep -i odroid | awk {'print $3'}


Installing new gcc and changing symbolic link

Ubuntu



$sudo add-apt-repository ppa:ubuntu-toolchain-r/test $sudo apt-get update
$sudo apt-get install gcc-4.7-base $sudo apt-get install gcc-4.8

after installation remove the previous sym link and point to new gcc-4.8

$ which gcc
$ ls -ld /usr/bin/gcc
$ sudo rm /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
$ ls -ld /usr/bin/gcc

Compiling from source?

sudo apt-get install gcc-multilib
error: no acceptable m4 could be found in $PATH.
$sudo apt-get install m4

see this one


Monday, 15 July 2013

Plotting uneven data on x-axis in gnuplot

In order to plot uneven data on x-axis in gnu plot, we have to do a little bit of modification

For example; Consider the data

#Procs SomeValue
1              1
2              2
4              4
8              8
16            16
32            32
64            64

we want to play #Procs on x-axis which if we use simle plot and 'using 1:2' it will be uneven.

what you need to do is;

plot the graph as '2:xticlabels(1)' , rest is as-it-is

- remove xrange
- keep yrange