userland-prototype icon indicating copy to clipboard operation
userland-prototype copied to clipboard

A couple of fixes needed to be able to build/run this on my system

Open setzer22 opened this issue 4 years ago • 2 comments

Hi. First of all, thanks for this awesome piece of software! :D

I was trying to get this up and running, and following the steps in your README did not fully work. Here's a couple of things that need to be fixed:

  • Your program also depends on the bit32 lua package. I had to add it to the list of luarock dependencies inside userland-dev-1.rockspec
  • The userland script at the root of this repository does not work. The program requires lua 5.1 to run, but the script starts by evaluating the path with eval './luarocks path\'. This fails because the lua version is missing. It should be eval './luarocks --lua-version 5.1 path'. Additionally, the dot-slash before luarocks did not work. This assumes luarocks is on the same folder as userland. In my case, since it was a system package, I had to run eval 'luarocks --lua-version 5.1 path', with which I was finally able to run the program. NOTE: I used ' instead of the backtick above to avoid github messing up my formatting. This is not part of the fix.

Again, thanks for working on this!

Cheers

setzer22 avatar Aug 27 '20 07:08 setzer22

A couple more packages I had to install on my Ubuntu system: clang and llvm.

apt1002 avatar Sep 02 '20 13:09 apt1002

Thanks for the notes! This is of course a project in a very early stage so I haven't put a lot of effort in making it a seamless experience yet (the code itself is very much proof-of-concept-y still!) but I'm glad you managed to get it running :)

hishamhm avatar Sep 02 '20 17:09 hishamhm