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

Add macOS to the automated testing #209

Open
heikef opened this issue Nov 28, 2018 · 11 comments
Open

Add macOS to the automated testing #209

heikef opened this issue Nov 28, 2018 · 11 comments

Comments

@heikef
Copy link
Contributor

heikef commented Nov 28, 2018

It would be nice for Mac users if gimic could be operating on a Mac.

@bast
Copy link
Member

bast commented Nov 28, 2018

We should add a macOS test on Travis for this.

@bast bast changed the title Gimic for Mac Add macOS to the automated testing Nov 28, 2018
@heikef
Copy link
Contributor Author

heikef commented Jan 12, 2019

During a new attempt to install gimic on my Mac I ended up doing a cleanup of unused code. Afterwards I was able to compile. The problem with the Mac is the library mess.

@heikef
Copy link
Contributor Author

heikef commented Jan 12, 2019

The following was helpful in my case:

  1. use Anaconda and install everything needed in requirements.txt
  2. gfortran, gcc, g++ have to be in /usr/local/bin/
  3. in the .bashrc I had to add:

for the compilers:

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

for Anaconda:

export PATH=/Users/my_username:/Users/my_username/anaconda/bin:$PATH

for CMake:

PATH="/Applications/CMake.app/Contents/bin":"$PATH"

@heikef
Copy link
Contributor Author

heikef commented Jan 12, 2019

I tried several things using MacPorts and Brew and XCode. The main problem was to set the PATH correct such that gimic cmake finds what it should. I am sure there are better solutions possible compared to the one which worked for me.

@heikef
Copy link
Contributor Author

heikef commented Jan 12, 2019

The setup --omp stuff was also working, but not the --blas option. This is because it does not find the Blas and Lapack libraries. Any idea on how to install them on a Mac + make it work for gimic?

@heikef
Copy link
Contributor Author

heikef commented Jan 12, 2019

By the way I used Anaconda 2.

@heikef
Copy link
Contributor Author

heikef commented Mar 31, 2019

I was thinking about this issue. Is it really a good idea to support different operating systems? Should we not instead concentrate on improving gimic?

@bast
Copy link
Member

bast commented Mar 31, 2019

But users install GIMIC also on macOS so the automated testing will hopefully help us to make GIMIC more robust also for macOS.

@heikef
Copy link
Contributor Author

heikef commented Mar 31, 2019

Does this imply we include automated testing for Mac on TravisCI but this will not affect other non-Mac users when installing the code on their local machines?

@bast
Copy link
Member

bast commented Mar 31, 2019

Right.

@heikef
Copy link
Contributor Author

heikef commented Mar 31, 2019

Cool, but how do we do this?

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