Installing "markdown.sile" on WSL #77
-
Hi Didier (@Omikhleia), In the past few days, I've been working on installing both the SILE Typesetter and "markdown.sile" in the Windows Subsystem for Linux (WSL). Through trial and error, I was finally able to get it installed in Ubuntu by working through the following steps. I would be interested to know if I just got it working by accident, or might there be a better way of doing this? In Section 2.7 of the SILE manual (Installing third-party packages), it mentions checking the version of Lua that SILE uses, so that Luarocks will install the correct version. Since I wanted to install locally, I used:
However, there were problems downloading the "rockspec" file, so I did it manually using:
I then tried this command, but it gave an error about Lua header files:
The article Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR. - Windows 10 with Lua distribution, mentioned that Luarocks could not find "lua.h", "lualib.h" and other related files. To find these on my system, I installed locate (
However, the installation still failed. Running the Luarocks command by itself (
I installed Lua 5.2 ( I installed liblua5.2-dev and updated the "locate" database:
and then checked for further "include" folders:
This gave the following:
Updating the LUA_INCDIR (
This allowed the installation to work correctly (
As I said, this was trial-and-error over several days. I wasn't always consistent with the commands and the Lua versions that I used, so I may have been giving myself extra work to get it installed locally. Some final questions: might there have been some checks that I could have run earlier to find out what was missing? Since I am not familiar with the dependencies between Lua versions, or much about the Lua ecosystem, are there some assumptions that needed to be corrected? Kind Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Greetings @celtic-coder |
Beta Was this translation helpful? Give feedback.
-
Hi Didier (@Omikhleia), You have put a huge amount of work into the SILE packages. I was not expecting that you would put any extra work into trying to sort out a particular WSL or Ubuntu problem. I was just hoping that you might have come across something like this in the past, and that you could share from your expertise. In any case, it was a good learning experience for me. Both personally and professionally, my main platform has been Windows, with occasional stints on Linux. I had expectations that everything would work "out of the box", and so trying to figure out the "development" environment was useful. Yes, there seems to be a problem involving the version of "luarocks" in combination with the default Lua installation on the vanilla Ubuntu provided on WSL. Thankfully, I didn't have to rebuild "luarocks" like you did, but I at least now have a complete installation of "markdown.sile". In any case, I trust that what I have written might help some other user who may have a problem with WSL. Thanks for your help! I am going to close this issue. Kind Regards, |
Beta Was this translation helpful? Give feedback.
Moving the issue to Discussions / Q&A - It might indeed be helpful for other users that could hit a similar situation.