Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a couple of problems on CentOS 8 #12

Open
mathog opened this issue May 11, 2020 · 1 comment
Open

a couple of problems on CentOS 8 #12

mathog opened this issue May 11, 2020 · 1 comment

Comments

@mathog
Copy link

mathog commented May 11, 2020

There are a couple of small issues when building ngs-sdk on CentOS 8.

(1) In $TOPDIR/share/examples-java/Makefile NGS_CLASS_PATH is defined but the javac line is:

javac $(DEBUGGING) $^ -d .
when it needs to be:

javac -classpath $(NGS_CLASS_PATH) $(DEBUGGING) $^ -d .
This may be related to (5), below, as there was no CLASSPATH defined in the environment.

(2) In the source directories ngs-python/Makefile.python refers to "python", but there is no such beast on RH derivatives, only python2 or python3. The file was modified to use "python3".

(3) On the system in question the python packages are installed into /usr/common/lib/python3.6/site-packages (which is NFS shared with other machines) by setting PYTHONPATH to that value. The supplied Makefile in that directory ignored PYTHONPATH, so installation was done manually by:

cd /usr/common/src/ncbi/ngs/ngs-python
python3 setup.py  install --prefix=/usr/common 2>&1 \
      | tee ../install_python_2020_05_11.log

The default installation of the ngs python pieces goes into "~/.local".

(4) The build leaves a large directory ~/ncbi-outdir even after installation.
This directory is not discussed at all in the installation instructions:

https://github.com/ncbi/ngs/wiki/Building-and-Installing-from-Source

This should be documented, especially a comment about when it is safe to remove it.

(5) The installation instructions end with:

At this point, the installation should be complete, although you will probably have to login again before all changes take place. If the installation is successful, you should find library code installed and an update to shell variables (only AFTER logging in again). To verify update of your environment:
$ echo $LD_LIBRARY_PATH # should now have the path to your installed ngs libraries
$ echo $CLASSPATH # should now have the path to your installed ngs jar

I do not see any modifications to login configuration files (nor would I want the installation to do that automatically.) In a newly logged in session, after installation, neither LD_LIBRARY_PATH nor CLASSPATH were set as indicated. If this was supposed to happen with one of the "make install" steps, that must have failed.

@kwrodarmer
Copy link
Contributor

Thank you for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants