At least on Debian gem install pluto needs to be run as root.
sudo gem install pluto works (if proper dependencies are installed in advance).
Please consider adding a pointer/link to the install dependencies section of the FAQ in Step 1 of README.md (so people will see it before or right after running the gem install command) and maybe ask for contribution of similar lists for other systems.
On Debian - roughly the same dependencies are needed for gem install pluto as bundle install.
Dependencies: git ruby sqlite3 sudo gcc make libsqlite3-dev ruby-dev
ruby instead of ruby-bundler which pulled in ruby and ruby-bundler for the bundle install approach.
Oncelibsqlite3-dev and ruby-dev were installed both
sudo gem install pluto
luto build planet.ini -t starter -o build
completed successfully.
The first error before installing libsqlite3-dev ruby-dev but with git ruby sqlite3 sudo gcc make already installed in the minimal Debian image was:
Fetching: sqlite3-1.4.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing pluto:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.4.2/ext/sqlite3
/usr/bin/ruby2.5 -r ./siteconf20200214-12-v7br8y.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
full message:
developer@d07e41bc8088:~$ sudo gem install pluto
Fetching: iniparser-0.1.0.gem (100%)
Successfully installed iniparser-0.1.0
Fetching: props-1.2.0.gem (100%)
Successfully installed props-1.2.0
Fetching: logutils-0.6.1.gem (100%)
Successfully installed logutils-0.6.1
Fetching: concurrent-ruby-1.1.6.gem (100%)
Successfully installed concurrent-ruby-1.1.6
Fetching: i18n-1.8.2.gem (100%)
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Successfully installed i18n-1.8.2
Fetching: thread_safe-0.3.6.gem (100%)
Successfully installed thread_safe-0.3.6
Fetching: tzinfo-1.2.6.gem (100%)
Successfully installed tzinfo-1.2.6
Fetching: zeitwerk-2.2.2.gem (100%)
Successfully installed zeitwerk-2.2.2
Fetching: activesupport-6.0.2.1.gem (100%)
Successfully installed activesupport-6.0.2.1
Fetching: rubyzip-2.2.0.gem (100%)
Successfully installed rubyzip-2.2.0
Fetching: textutils-1.4.0.gem (100%)
Successfully installed textutils-1.4.0
Fetching: feedparser-2.1.2.gem (100%)
Successfully installed feedparser-2.1.2
Fetching: feedfilter-1.1.1.gem (100%)
Successfully installed feedfilter-1.1.1
Fetching: activemodel-6.0.2.1.gem (100%)
Successfully installed activemodel-6.0.2.1
Fetching: activerecord-6.0.2.1.gem (100%)
Successfully installed activerecord-6.0.2.1
Fetching: logutils-activerecord-0.2.1.gem (100%)
Successfully installed logutils-activerecord-0.2.1
Fetching: props-activerecord-0.2.0.gem (100%)
Successfully installed props-activerecord-0.2.0
Fetching: activityutils-0.1.2.gem (100%)
Successfully installed activityutils-0.1.2
Fetching: activerecord-utils-0.4.1.gem (100%)
Successfully installed activerecord-utils-0.4.1
Fetching: pluto-models-1.5.6.gem (100%)
Successfully installed pluto-models-1.5.6
Fetching: fetcher-0.4.5.gem (100%)
Successfully installed fetcher-0.4.5
Fetching: pluto-feedfetcher-0.1.4.gem (100%)
Successfully installed pluto-feedfetcher-0.1.4
Fetching: pluto-update-1.6.3.gem (100%)
Successfully installed pluto-update-1.6.3
Fetching: liquid-4.0.3.gem (100%)
Successfully installed liquid-4.0.3
Fetching: pakman-1.1.0.gem (100%)
Successfully installed pakman-1.1.0
Fetching: pluto-merge-1.1.0.gem (100%)
Successfully installed pluto-merge-1.1.0
Fetching: pluto-tasks-1.5.3.gem (100%)
Successfully installed pluto-tasks-1.5.3
Fetching: gli-2.19.0.gem (100%)
Successfully installed gli-2.19.0
Fetching: sqlite3-1.4.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing pluto:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.4.2/ext/sqlite3
/usr/bin/ruby2.5 -r ./siteconf20200214-12-v7br8y.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/sqlite3-1.4.2 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/sqlite3-1.4.2/gem_make.out
gem install pluto
needs to be run as root.sudo gem install pluto
works (if proper dependencies are installed in advance).Step 1
ofREADME.md
(so people will see it before or right after running thegem install
command) and maybe ask for contribution of similar lists for other systems.gem install pluto
asbundle install
.ruby
instead ofruby-bundler
which pulled inruby
andruby-bundler
for thebundle install
approach.Once
libsqlite3-dev
andruby-dev
were installed bothsudo gem install pluto
luto build planet.ini -t starter -o build
completed successfully.
The first error before installing
libsqlite3-dev ruby-dev
but withgit ruby sqlite3 sudo gcc make
already installed in the minimal Debian image was:full message: