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

Installing noddy on Mac OS #13

Open
mycarta opened this issue Dec 29, 2016 · 5 comments
Open

Installing noddy on Mac OS #13

mycarta opened this issue Dec 29, 2016 · 5 comments

Comments

@mycarta
Copy link

mycarta commented Dec 29, 2016

Hi there,

I am wonderign if you had any expereice with, or can point to any resources on how to install noddy on a mac.

I successfully cloned and installed pynoddy, then in the noddy directory I tried this:

Macintosh-5:~ matteoniccoli$ cd GitHub/pynoddy
Macintosh-5:pynoddy matteoniccoli$ cd noddy
Macintosh-5:noddy matteoniccoli$ ./adjust_for_MacOSX.sh
Macintosh-5:noddy matteoniccoli$ ./compile.sh
-bash: ./compile.sh: Permission denied

but I get a permission problem.

@mycarta
Copy link
Author

mycarta commented Dec 29, 2016

I see you suggest as an alternative to download a precompiled version from here: https://github.com/flohorovicic/pynoddy/tree/master/noddyapp
I am fairly new to this kind of installations. Where would you recommend copying the noddy_precompiled_MacOSX and is there anything else that needs to be done? Thank you!

If I try:

Macintosh-5:~ matteoniccoli$ cd GitHub/pynoddy
Macintosh-5:pynoddy matteoniccoli$ ./noddy_precompiled_MacOSX
-bash: ./noddy_precompiled_MacOSX: Permission denied
Macintosh-5:pynoddy matteoniccoli$

I get again a permission error.

@flohorovicic flohorovicic self-assigned this Dec 30, 2016
@flohorovicic
Copy link
Collaborator

Great to see that you are interested in our project and I hope that I can help you getting started quickly! I am also running pynoddy on MacOSX, so there should be no problem!

I just tested the compile script on two different (MacOSX)-system and the procedure works as you tried (first running bash adjust_for_MACOSX.sh and then bash compile.sh).

Both scripts should only affect the current directory you are in. Could you check if you have write permissions in your directory (ls -ld .)? (And, if you do not have write permissions, you could add them to the directory, e.g. with chmod -R u=rwx noddy in the parent pynoddy directory)

Also, are you installing on your own machine where you have superuser-rights? Then, of course you could run the scripts as su (if you want to do that):

sudo bash adjust_for_MACOSX.sh
sudo bash compile.sh

I hope that helps! Looking forward to hear how you go!

@mycarta
Copy link
Author

mycarta commented Dec 31, 2016

Thank you

I did as you suggest and it seemed to work, e.g.
sudo bash adjust_for_MACOSX.sh
sudo bash compile.sh

HOwever, then I tried to place the executable noddy in the Path, e.g. by adding the last line to the .bash_profile:

# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
export PATH=/System/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}
# added by Anaconda 2.1.0 installer
export PATH="//anaconda/bin:$PATH"

# added by Anaconda2 4.0.0 installer
export PATH="/Users/matteoniccoli/anaconda2/bin:$PATH"

# added by matteo for pynoddy
export PATH="/Users/matteoniccoli/Pythonwork/GitHub/pynoddy/:\$PATH"

But that really messed up with the system, so that no commands are recognized in the terminal any more, and I am forced to restore the previous version of the .bash_profile

@flohorovicic
Copy link
Collaborator

Good to hear that the installation itself worked! Did you test the executable, i.e. running it directly in the directory (noddy): $> ./noddy.exe (or $> ./noddy)?

Ok, concerning adding it to the Path: it should be:
export PATH="/Users/matteoniccoli/Pythonwork/GitHub/pynoddy/:$PATH"

Note: no escape character (\) before the $.

Also as an idea: before messing with the .bash_profile file (and possibly getting in trouble with your system), try executing the command in a terminal only, and see if the path is added correctly with:

echo $PATH

You should see a list of all your directories that contain executable files - plus the one of the noddy directory.

Hope that works! And for now: all the best for the remaining hours of the year - and a great start into the new one!

@mycarta
Copy link
Author

mycarta commented Jan 7, 2017

I will try that. Thank you

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

No branches or pull requests

2 participants