gokr / spry

A Smalltalk and Rebol inspired language implemented as an AST interpreter in Nim
Other
389 stars 23 forks source link

On Mac OS X 10.12.6, nimble install spry produces binaries that fail on execution #10

Closed truedat101 closed 6 years ago

truedat101 commented 6 years ago

After installing nim using brew, nimble install spry produces a spry and ispry binary that will fail with:

could not load: libsnappy.dylib compile with -d:nimDebugDlOpen for more information

truedat101 commented 6 years ago

May be related to #2 , it appears snappy is an external dependency . I am checking into whether building with nimble directly (not following the README instructions, in other words) will be preferred approach.

truedat101 commented 6 years ago

Unfortunately, while the .nimble file produces a comprehensive build, snappy is a library that may/may not exist on a platform. In the README, section for dependencies should include lib snappy. On Mac OS X, this is "brew install snappy".

truedat101 commented 6 years ago

So as mentioned, above, I can fix the error by installing snappy library (native). Nimble in this case only handles the wrapper around snappy via nimsnappy.

gokr commented 6 years ago

Yeah, thanks. I will update the README around these things.

truedat101 commented 6 years ago

On debian, I think this would be "sudo apt-get install libsnappy-dev"

kamidev commented 6 years ago

Yes, I also had to install Snappy on MacOS. "brew install snappy" works just fine.

gokr commented 6 years ago

I am going through this now - fixing the README etc. I just had a lot of updates to do on my mac first. And I am fiddling with Windows - unfortunately choosenim is a tad b0rken there.

gokr commented 6 years ago

I have updated the README, this is all of course a bit messy, especially on Windows.

truedat101 commented 6 years ago

@gokr I can try it out on windows when you are ready. Much easier to test in a clean environment.

gokr commented 6 years ago

Yeah, I have updated instructions, eo test. But now I am also restructuring spry into two separate nimble packages - spry(interpreter) and spryvm (library).

gokr commented 6 years ago

Also, I am on gitter btw, gokr/spry