Skip to content
New issue

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

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

Already on GitHub? # to your account

too-many-cells not installed on MacOSX Sierra #5

Closed
elusito opened this issue Mar 3, 2019 · 12 comments
Closed

too-many-cells not installed on MacOSX Sierra #5

elusito opened this issue Mar 3, 2019 · 12 comments

Comments

@elusito
Copy link

elusito commented Mar 3, 2019

I tried to install too-many-cells on MacOS X Sierra without success.

It fails building gtk 0.14 that is required.

I also followed instructions here: https://wiki.haskell.org/Gtk2Hs/Mac i.e. I tried
to use cabal install gtk -f have-quartz-gtk although for OS X Mavericks but again it failed.

It installs automatically gtk 0.15.

Any suggestion?

Thank you in advance

@GregorySchwartz
Copy link
Owner

Can you post the error output?

@elusito
Copy link
Author

elusito commented Mar 4, 2019

Yes:

gtk-0.14.10: configure
gtk-0.14.10: build
Progress 1/5

-- While building package gtk-0.14.10 using:
/private/var/folders/lv/2jj3qhdn7wz4t58kgm0m14bmgc_64f/T/stack-aaff458a906ff1bc/gtk-0.14.10/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-2.2.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1

In the attached log file the details.

Thank you in advance

gtk-0.14.10.log

@GregorySchwartz
Copy link
Owner

GregorySchwartz commented Mar 4, 2019

I don't have a Mac so FYI I won't have a way to test this (worst case scenario you can use docker which won't have these issues).

First, did you use this command in the too-many-cells folder with stack? Something like stack install --ghc-options "-fhave-quartz-gtk".

@GregorySchwartz
Copy link
Owner

Also try stack install --flag gtk:have-quartz-gtk from commercialhaskell/stack#807.

@elusito
Copy link
Author

elusito commented Mar 6, 2019

So while solved the gtk-0.14.10 build another error occurs:

Building library for too-many-cells-0.1.3.0..
[ 3 of 21] Compiling TooManyCells.Matrix.Types ( src/TooManyCells/Matrix/Types.hs, .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/TooManyCells/Matrix/Types.o )
: can't load .so/.DLL for: /Users/Username/.stack/snapshots/x86_64-osx/lts-12.0/8.4.3/lib/x86_64-osx-ghc-8.4.3/libHShmatrix-gsl-0.19.0.1-Gni665xmjpQJJA5D3St61G-ghc8.4.3.dylib (dlopen(/Users/lusito.eleonora/.stack/snapshots/x86_64-osx/lts-12.0/8.4.3/lib/x86_64-osx-ghc-8.4.3/libHShmatrix-gsl-0.19.0.1-Gni665xmjpQJJA5D3St61G-ghc8.4.3.dylib, 5): Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib
Referenced from: /Users/Username/.stack/snapshots/x86_64-osx/lts-12.0/8.4.3/lib/x86_64-osx-ghc-8.4.3/libHShmatrix-gsl-0.19.0.1-Gni665xmjpQJJA5D3St61G-ghc8.4.3.dylib
Reason: image not found)

@GregorySchwartz
Copy link
Owner

Do you have the GNU Scientific Library dependency? If not first install that and the rest of the dependencies in the installation section of https://gregoryschwartz.github.io/too-many-cells/. I don't know the exact names of the Mac equivalents. If it still doesn't work, let me know!

@GregorySchwartz
Copy link
Owner

Any updates or should I close this issue?

@elusito
Copy link
Author

elusito commented Apr 11, 2019

still not working. we stopped trying to install it

@GregorySchwartz
Copy link
Owner

That's unfortunate. I will try to get hold of a Mac to try and sort this out. In the meantime, have you tried the Docker? Mac people have had success using that instead of compiling from scratch.

@elusito
Copy link
Author

elusito commented Apr 11, 2019

Oh yes Docker! So, I cannot use it on our cluster because it is installed on a dedicated server and in development and we, users, don't have access. I then installed it on my Mac but since I deal with 30.000 cells I have some resources issues. Probably I can try using a subset of cells at least to verify that it works.

@GregorySchwartz
Copy link
Owner

I was able to build on macOS with no issue using the commands I put into the documentation in Installation -> macOS (https://gregoryschwartz.github.io/too-many-cells/). Please try it out and see if it solves your problem!

@GregorySchwartz
Copy link
Owner

It works on this end, so if you are still having difficulty please re-open this issue.

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

No branches or pull requests

2 participants