isovic / graphmap

GraphMap - A highly sensitive and accurate mapper for long, error-prone reads http://www.nature.com/ncomms/2016/160415/ncomms11307/full/ncomms11307.html Note: This was the original repository which will no longer be officially maintained. Please use the new official repository here:
https://github.com/lbcb-sci/graphmap2
MIT License
178 stars 44 forks source link

installation problem on debian 8 (jessie) #46

Closed miles-gene closed 7 years ago

miles-gene commented 7 years ago

Hello I'm new to linux and I'm having problems compiling graphmap i think. My linux distro is using gcc 4.9 so after downloading the source files I ran $make modlues and then $make without specifying which version of gcc to use unlike in the INSTALL.md file. There was a lot of activity on the screen. Subsequently $graphmap command was not recognised and no green folders were created anywhere I'd expect. Perhaps I am missing some dependancies. Any advise would be greatly appreciated

isovic commented 7 years ago

Hi, So, after running make, the folder bin/ does not exist? The binary should be located at bin/Linux-x64/graphmap. Perhaps there are some dependencies missing. Could you by any chance do a fresh git clone, and run the following:

make modules 2>&1 | tee makemodules.log  
make 2>&1 | tee make.log  

And attach these two files (makemodules.log and make.log) here so I can take a look?

Best regards, Ivan.

miles-gene commented 7 years ago

Hi Thanks for your reply. I have generated the logfiles but can't attach them 'we don't support that file type' error. I have so far been unable to save/convert them to a supported file type or export them in other formats but I'll get there. There was data in /bin/Linux-x64/graphmap after compiling the previous clone.

thanks again

isovic commented 7 years ago

Hi, yeah, forgot about that. You can rename the extension to these files from .log to .txt, or rerun everything as such:

make modules 2>&1 | tee makemodules.txt  
make 2>&1 | tee make.txt  

Another option is to zip the files and upload them here. Best regards, Ivan.

miles-gene commented 7 years ago

Hi Ivan makemodulestext.txt maketext.txt

I hope these are ok. Miles

isovic commented 7 years ago

Hi Miles, from what I can tell, the compilation went fine and you should have a binary at the relative path: bin/Linux-x64/graphmap . What output do you get when you try to run it? Best regards, Ivan.

miles-gene commented 7 years ago

Hi Ivan bash: graphmap: command not found

I haven't added anything to 'my path' or edited any bashrc files which I have been reading about. I don't know if that's relevant. Thanks for looking at the logs Miles

miles-gene commented 7 years ago

Hi again If I go to the Linux-x64 directory ./graphmap works! Sorry for bothering you, the previous package I installed (poretools) worked from any directory. thanks for your help

isovic commented 7 years ago

Oh, I see! Yup, this is the default behavior on Linux unless you either copy the binary to the /usr/bin/ folder or otherwise provide the system with a path to your binary.

You can install graphmap in the /usr/bin/ folder simply using the Makefile but you will need sudo access (this often works on many other packages too, but depends on the developers though). When you're in the graphmap folder, run:
sudo make install This will automatically copy the binary to /usr/bin/ so that you can run it directly without specifying the path.

I'm happy to hear it worked! Best regards, Ivan.

miles-gene commented 7 years ago

Hi Ivan Thanks for the Linux tips, I'm on a learning curve as they say. Graphmap worked great for mapping/overlapping the lambda reads I generated, I will now use it to help assemble some BACs.

happy new year Miles

isovic commented 7 years ago

No worries, Linux can be a huge chunk to bite, just hang on :-)

Happy new year to you to! Ivan