Replies: 1 comment
-
Thanks for the detailed write-up! See also the recent I've used https://github.com/oploadk/localua(mentioned recently in #620 to build a separated patched lua and pallene on macOS. See https://blog.separateconcerns.com/2022-10-10-localua-pallene.html. But it doesn't support pallene-tracer, I guess. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I've already red about Pallene a few time, but today I finally tried to build and install the thing on my iMac. It was a bit of a bumpy road but in the end it did work and I can actually run the examples - yay.
With this particular installation routine I wanted to make sure to have everything separated from my standard lua and luarocks setup.
So I'd like to share my experience because on the one hand, I'd like to hear if I made any mistakes and one the other hand this may save time for another newcomer like me.
User directory and the prefix path
installing lua-internals
clone the modified lua interpreter
edit Makefile of lua-internals
no whitespace after
$(PREFIX)
and then install with
make guess -j4 && make install
, sudo is not neededInstalling pallene-tracer
edit Makefile of pallene-tracer
no whitespace after
$(PREFIX)
and then install with
make && make install
, sudo is not neededInstalling Luarocks
This comes from the Pallene Readme, but the ./configure line is slightly altered, and again sudo is not needed
Installing Pallene
And then the luarocks command slightly altered:
Final Installation result
All the requirements and also the the Pallene compiler itself is installed in $PREFIX, which is in my case ~/build/pallene/lua
In order for the
pallenec
and the c compiler (gcc) compiler to work properly, lets define the include dir:Lets run the example
So thats it, comments are welcome
Beta Was this translation helpful? Give feedback.
All reactions