Im trying to install Blat on my ubuntu12.04 64bit following this steps:
1. Download the BLAT source files at http://users.soe.ucsc.edu/~kent/src/ (look for the blatSrc* zip file with the most recent date)
2. Unzip the archive to create a 'blatSrc' directory
3. Remove the "-Werror" compiler flag to treat warnings as errors
To do this, edit the newly extracted blatSrc/inc/common.mk file and remove all occurences of string "-Werror" (thus allowing to get past warnings as errors)
Alternative [TO BE TESTED]:
edit the blatSrc/inc/common.mk file and change only line 17 from
HG_WARN_ERR = -DJK_WARN -Wall -Werror
to
HG_WARN_ERR = -DJK_WARN -Wall
4. Check the value of the environment variable 'MACHTYPE' (which depends on machine architecture) by typing in a terminal:
echo $MACHTYPE
It's usually something like 'i386', 'i686' or 'x86_64'.
If default $MACHTYPE is a long name with dashes (e.g. 'i486-pc-linux-gnu') it must be set to its correct "short" value. To find out this just type the command 'uname -m' and then:
[Option 1, temporary change] [TO BE TESTED]
Type the following commands:
MACHTYPE=i686 (or the correct MACHTYPE)
export MACHTYPE
[Option 2, permanent change]
Append the following two lines to the '~/.bashrc' file:
MACHTYPE=i686 (or the correct MACHTYPE)
export MACHTYPE
5. Make the directory ~/bin/$MACHTYPE (which is where the non-web executables will go) by typing:
mkdir ~/bin/$MACHTYPE
6. Go to the blatSrc/lib directory. If it doesn't already exist, make also here a $MACHINE directory:
mkdir $MACHTYPE
7. At the blatSrc directory type 'make'.
But once I start the make command and after the compiling process start the result I ger is :
/usr/bin/ld: cannot open output file /root/bin/x86_64/blat: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [blat] Error 1
make[1]: Leaving directory `/home/mohamed/Downloads/blatSrc/blat'
make: *** [all] Error 2
While the directory is already exist inside /root/bin/ by using the command:
mkdir ~/bin/$MACHTYPE
Which will not work this way but I have to acces the root folder after that the bin folder then creat the directory otherwise if I just eenter the command (mkdir ~/bin/$MACHTYPE) the result will be
mkdir: cannot create directory `/root/bin/x86_64': No such file or directory
How to solve it.
Thank you in advance
1. Download the BLAT source files at http://users.soe.ucsc.edu/~kent/src/ (look for the blatSrc* zip file with the most recent date)
2. Unzip the archive to create a 'blatSrc' directory
3. Remove the "-Werror" compiler flag to treat warnings as errors
To do this, edit the newly extracted blatSrc/inc/common.mk file and remove all occurences of string "-Werror" (thus allowing to get past warnings as errors)
Alternative [TO BE TESTED]:
edit the blatSrc/inc/common.mk file and change only line 17 from
HG_WARN_ERR = -DJK_WARN -Wall -Werror
to
HG_WARN_ERR = -DJK_WARN -Wall
4. Check the value of the environment variable 'MACHTYPE' (which depends on machine architecture) by typing in a terminal:
echo $MACHTYPE
It's usually something like 'i386', 'i686' or 'x86_64'.
If default $MACHTYPE is a long name with dashes (e.g. 'i486-pc-linux-gnu') it must be set to its correct "short" value. To find out this just type the command 'uname -m' and then:
[Option 1, temporary change] [TO BE TESTED]
Type the following commands:
MACHTYPE=i686 (or the correct MACHTYPE)
export MACHTYPE
[Option 2, permanent change]
Append the following two lines to the '~/.bashrc' file:
MACHTYPE=i686 (or the correct MACHTYPE)
export MACHTYPE
5. Make the directory ~/bin/$MACHTYPE (which is where the non-web executables will go) by typing:
mkdir ~/bin/$MACHTYPE
6. Go to the blatSrc/lib directory. If it doesn't already exist, make also here a $MACHINE directory:
mkdir $MACHTYPE
7. At the blatSrc directory type 'make'.
But once I start the make command and after the compiling process start the result I ger is :
/usr/bin/ld: cannot open output file /root/bin/x86_64/blat: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [blat] Error 1
make[1]: Leaving directory `/home/mohamed/Downloads/blatSrc/blat'
make: *** [all] Error 2
While the directory is already exist inside /root/bin/ by using the command:
mkdir ~/bin/$MACHTYPE
Which will not work this way but I have to acces the root folder after that the bin folder then creat the directory otherwise if I just eenter the command (mkdir ~/bin/$MACHTYPE) the result will be
mkdir: cannot create directory `/root/bin/x86_64': No such file or directory
How to solve it.
Thank you in advance
Comment