Ubuntu 18.04 & 20.04 installation Guide #1161
-
Ubuntu 18.04 & 20.04 installation GuideWhy?I've been using slate now for almost a year and have gone through the painful installation process on Ubuntu environments enough times to realize that this project really needs a 1 place guide on the process of setting up the whole thing. GuideIssues that you are likely to run into when setting up a fresh slate project on a relatively "clean"/"fresh" Ubuntu installation and their solutions: 1. Missing ruby files:Example:
Further running
Solution: Install ruby-dev using 2. Missing zlib:Example:
This usually gets thrown at nokogiri gem installation step Solution: Install zlib using 3. Could not find a JavaScript runtime:slate's README suggests adding rubyracer gem to the projects gemfile. After adding it, and running
**Solution: ** Install nodejs using
The closest I got to an explanation why is this post (https://www.bountysource.com/issues/62461413-handling-of-v8-isolate-was-forked) although admittedly I didn't look too far before trying nodejs 4. Can't find gem bundler (>= 0.a)Running
Solution: update to the latest RubyGems Note: according to the above article, this problem is only possible with ruby versions below 2.6.3. Mine was at 2.5.1 when I encountered this problem, which supports this claim. Disclaimer:I hope this guide helps others who encounter problems with their installations and it serves as a 1 stop solution for those problems. If you find other problems with solutions that you think should be added to this guide, comment bellow. This same process has shown to be repeatable for me on 4 different Ubuntu installations in the past, all of them 18.04. This process might be a bit different from one installation to another, depending on what you already have installed on the system from other sources/software. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
thanks, helped a lot |
Beta Was this translation helpful? Give feedback.
-
I ran into all 3 of these issues. How is it that every single error code is useless? Your guide solved everything! Cheers mate, you've saved me a whole bunch of time! |
Beta Was this translation helpful? Give feedback.
-
@lord please could you add this comment to README file? I was lost 3 hours... and finally I found this issue and thanks of this info I fixed my problems @nzkozar Thanks! |
Beta Was this translation helpful? Give feedback.
-
Added a solution for issue number 4: Can't find gem bundler (>= 0.a). Hope it helps other lost souls 💪 |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. I've folded in the dependencies and such into the wiki here: https://github.com/slatedocs/slate/wiki/Using-Slate-Natively#installing-dependencies-on-ubuntu-1804. As part of the instructions, I've included installing nodejs and the other dependencies as well as running |
Beta Was this translation helpful? Give feedback.
Thanks for this. I've folded in the dependencies and such into the wiki here: https://github.com/slatedocs/slate/wiki/Using-Slate-Natively#installing-dependencies-on-ubuntu-1804. As part of the instructions, I've included installing nodejs and the other dependencies as well as running
gem update --system
to hopefully avoid the above errors altogether.