Question: Basic question about using ./configure for installing a software
0
gravatar for chahat_u
3 months ago by
chahat_u110
United States
chahat_u110 wrote:

Hi,

This is a naive question. I am trying to install Jellyfish (http://www.genome.umd.edu/jellyfish.html) on a Mac. For that, their docs say (https://github.com/gmarcais/Jellyfish#installation) -

To install in your home directory, do:

./configure --prefix=$HOME 
make -j 4 
make install

Now, I downloaded the git directory on the system, cd'd to it and ran ./configure --prefix=$HOME, and on the terminal, I got the error -

-bash: ./configure: No such file or directory

I had previously installed gcc on the system using brew install gcc. I also tried gcc ./configure --prefix=$HOME, but again the error was -

clang: error: no such file or directory: './configure'

clang: error: no input files

The folder I downloaded from their Github page does have a file names configure.ac. Could someone let me know what is the mistake I am committing? Thanks!!

jellyfish installation • 186 views
ADD COMMENTlink modified 3 months ago by h.mon26k • written 3 months ago by chahat_u110
3
gravatar for h.mon
3 months ago by
h.mon26k
Brazil
h.mon26k wrote:

It is all there at the GitHub repository, you didn't read carefully:

To compile from the git tree, you will also need autoconf, automake, libool, gettext, pkg-config and yaggo. Then to compile and install (in /usr/local in that example) with:

autoreconf -i
./configure
make -j 4
sudo make install

You can, off course, install at your home directory (I usually put under $HOME/bin, or even $HOME/bin/jellyfish):

autoreconf -i
./configure --prefix=$HOME
make -j 4
make install

edit: the github releases page also provides compiled binaries for Linux and MacOsX.

ADD COMMENTlink modified 3 months ago • written 3 months ago by h.mon26k

Thanks a lot, I didn't realize that I was trying the first method which is meant for github releases. I did download one of those and then proceeded with ./configure...make install. It worked without giving any error, but now if I run jellyfish on my Terminal, it says 'command not found'. I would be happy to raise this as a separate question if you feel that is more appropriate, but if you have a quick suggestion for this, that would be awesome!

ADD REPLYlink written 3 months ago by chahat_u110
1

Use the path that you used at the configure step to the PATH environment variable. If you used --prefix=$HOME, then do:

export PATH=$HOME:$PATH
ADD REPLYlink written 3 months ago by h.mon26k

OK. Actually export PATH=$path_I_used/bin:$PATH worked. For some reason, I had thought that one of the main jobs of make install was to add the path to the system path, but I guess not. Thanks a lot!

ADD REPLYlink written 3 months ago by chahat_u110
1

make install generally will do that if you have root access and are installing under that account.

ADD REPLYlink written 3 months ago by genomax69k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 883 users visited in the last hour