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

improve installation process #25

Closed
jasmainak opened this issue Dec 19, 2018 · 7 comments
Closed

improve installation process #25

jasmainak opened this issue Dec 19, 2018 · 7 comments

Comments

@jasmainak
Copy link
Collaborator

@samnemo I started trying to play around with hnn but I hit a roadblock.

It seems that the installation process requires one to have sudo rights. This is a no go for many people working in labs since they do not necessarily have sudo rights. Typically, in the python world, we use the anaconda package which is added to the path. Then everything else can be done without sudo.

Are there any libraries that really need sudo? Otherwise, I would recommend, replacing this with non-sudo options. I'm going to attempt an install without sudo, so I can make a pull request for this if you agree.

Also, it would be good to have some developer documentation -- such as a CONTRIBUTING.md (that github recommends) so those wanting to edit the code can understand how to get into it! Happy to help with it

@bloyl
Copy link

bloyl commented Dec 19, 2018 via email

@jasmainak
Copy link
Collaborator Author

Wow, that would be great! I don't see the attached script. Could you share it via a gist or something? Thanks!

@samnemo
Copy link
Member

samnemo commented Dec 19, 2018

Hi Mainak & Luke, Thanks for your suggestions! Sounds good to go ahead with the adjustments as PRs or changes to a development branch. Sam

@bloyl
Copy link

bloyl commented Dec 19, 2018

Mainak,
I'm on my phone so hopefully this link will do for now.

Note this doesn't deal with the system dependencies. Only the Python and things that need building.

https://drive.google.com/file/d/0B4FnwYbkdwdlWnk2MVNoT0lzeWNGNWNSREhVMGFiOW5JNmtv/view?usp=drivesdk

@jasmainak
Copy link
Collaborator Author

jasmainak commented Dec 19, 2018

Power of open science :) Thanks Luke! So far I am making good progress, and I managed to install nrn and iv but I had to make two modifications but I had to make the following modifications:

  1. Add $ export PATH="$PATH:/usr/lib64/mpich/bin/" for installing mpi4py using pip
  2. $ conda install libtool=2.4.2 for installing iv. I had 2.4.6 and it didn't like it

And then I stopped before $ rm -rf ${install_prefix}/hnn + edited the file hnn/hnn to have:

$ python3 ./hnn.py ./hnn.cfg

Just writing it all down while it's still in my head.

@bloyl are you going to make the PR or should I make it? Either way, one of us can test it while the other makes the PR.

@samnemo
Copy link
Member

samnemo commented Dec 20, 2018

@ramcdougal - may want to take note of what Mainak & Luke are working on

@blakecaldwell
Copy link
Member

Closing this with our completion of new Docker-based installation instructions on the HNN website:
https://hnn.brown.edu/index.php/installation-instructions/

The original points raised about sudo rights during installation is addressed in two ways:

  1. If Docker is installed and usable by non-root users, any user can instantiate the HNN container without sudo.
  2. In the Dockerfile the installation is done as "hnn_user". If someone wishes to reproduce this on an Ubuntu system without Docker, the Docker file will be prescriptive.

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

4 participants