Comments (8)
Thanks!
You did not do something wrong, it's just that there several ways of installing Cabal on macOS, and they seem to use different paths. In the HyperHaskell.app
bundle (it's a folder), can you change this line in the file Contents/Resources/app/src/interpreter.js
to use the path /Library/Haskell/bin/hyper-haskell-server
instead? This is probably the easiest way to fix it for you.
Ideally, I would bundle a separate GHC with HyperHaskell, so that people can start right away. But that's not entirely trivial. #10
from hyper-haskell.
Thanks. That fixed that error message. But now the status box says: "Could not load imports: Interpreter not running (Error 0)". I suspect this may be a basic misunderstanding on my part... am I supposed to launch hyper-haskell-server as a daemon somehow? Just running hyper-haskell-server from a Terminal window yields an error ("lookupSymbol failed in relocateSection ... ___gmp_rands")
from hyper-haskell.
am I supposed to launch hyper-haskell-server as a daemon somehow?
No, you're not supposed to launch this binary by yourself, the HyperHaskell app is supposed to do that automatically.
However, running in the Terminal should work, and the error message
Just running hyper-haskell-server from a Terminal window yields an error ("lookupSymbol failed in relocateSection ... ___gmp_rands")
indicates that something went wrong, perhaps while compiling or even linking the binary. Since hyper-haskell-server
uses the GHC API (via the hint
package), it is important that the supporting hyper
package is compiled with the exact same GHC version as the binary itself.
(Running the hyper-haskell-server
binary in the terminal should give a result similar to
$ hyper-haskell-server
Setting phasers to stun... (port 8024) (ctrl-c to quit)
Waiting for Haskell expression
)
from hyper-haskell.
I installed hyper, hyper-haskell-server, and hyper-extra on the same day, using cabal as per the instructions at https://github.com/HeinrichApfelmus/hyper-haskell. So I'm pretty sure they all used the same GHC version (8.4.3). I didn't notice any compilation or installation errors, and ~/Library/Haskell/logs/build.log shows "install-outcome: InstallOK" for every package.
from hyper-haskell.
That is very strange. Can you post the output that you get when running hyper-haskell-server
in the Terminal.
from hyper-haskell.
$ hyper-haskell-server
Setting phasers to stun... (port 8024) (ctrl-c to quit)
hyper-haskell-server:
lookupSymbol failed in relocateSection (RELOC_GOT)
/Library/Frameworks/GHC.framework/Versions/8.4.3-x86_64/usr/lib/ghc-8.4.3/integer-gmp-1.0.2.0/HSinteger-gmp-1.0.2.0.o: unknown symbol `___gmp_rands'
from hyper-haskell.
Seems to be a known issue: https://gitlab.haskell.org/ghc/ghc/issues/15105
I have hidden the offending file HSinteger-gmp-1.0.2.0.o (by gzipping it). Now hyper-haskell-server and HyperHaskell work! I hope I haven't broken anything else.
from hyper-haskell.
Great! Let me know if there is any other issue.
from hyper-haskell.
Related Issues (20)
- "Quit" doesn't HOT 1
- Cell evaluation fails when done too early after opening HOT 2
- Installation/running on linux HOT 3
- Automated HTML rendering of notebooks HOT 2
- Can't run interpreter with my GHC setup HOT 7
- MacOS: "Error: 1" using stack back-end HOT 2
- Does HyperHaskell work with Plotly? HOT 1
- reference to 'acceptNewSock' undefined HOT 1
- Support qualified imports with module aliases
- Use annotated Haskell modules as notebook format HOT 1
- instances Display List, Tuples ... HOT 5
- Hyper.html should take a Blaze.Html type as input
- Hyper.Graphics should be an alias for a Blaze.Html type HOT 1
- Ctrl-Return in "Module Imports" should reload imports
- Configuration of font size HOT 1
- Embedded GHC interpreter cannot find any modules or symbols HOT 2
- Scaling (via diagrams) doesn't work
- Too strict version bounds on QuickCheck for hyper-extra HOT 1
- Upgrade electron beyond 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyper-haskell.