Open github6043 opened 7 months ago
sudo gem install smashing Fetching daemons-1.4.1.gem Fetching eventmachine-1.2.7.gem Fetching rack-2.2.8.gem Fetching thin-1.8.2.gem Fetching thor-1.3.0.gem Fetching concurrent-ruby-1.2.3.gem Fetching sprockets-4.2.1.gem Fetching tilt-2.3.0.gem Fetching rack-protection-2.2.4.gem Fetching ruby2_keywords-0.0.5.gem Fetching mustermann-2.0.2.gem Fetching sinatra-2.2.4.gem Fetching multi_json-1.15.0.gem Fetching sinatra-contrib-2.2.4.gem Fetching ffi-1.16.3.gem Fetching sassc-2.4.0.gem Fetching raabro-1.4.0.gem Fetching tzinfo-2.0.6.gem Fetching et-orbi-1.2.7.gem Fetching fugit-1.9.0.gem Fetching rufus-scheduler-3.9.1.gem Fetching execjs-2.9.1.gem Fetching coffee-script-source-1.12.2.gem Fetching coffee-script-2.4.1.gem Fetching smashing-1.3.6.gem Successfully installed thor-1.3.0 Successfully installed rack-2.2.8 Building native extensions. This could take a while... ERROR: Error installing smashing: ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/3.0.0/gems/eventmachine-1.2.7/ext
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-27045-ytn75t.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/3.0.0/gems/eventmachine-1.2.7 for inspection. Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/eventmachine-1.2.7/gem_make.out
ruby --version ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
Thanks for the issue with detailed information. I have Ubuntu 22.04 LTS too, so I should be able to try to reproduce it and compare environment settings. I'm leaving this GitHub notification in my GH Inbox, and will update it once I have some spare time to test it :+1: Cheers.
Thanks for the issue with detailed information. I have Ubuntu 22.04 LTS too, so I should be able to try to reproduce it and compare environment settings. I'm leaving this GitHub notification in my GH Inbox, and will update it once I have some spare time to test it 👍 Cheers.
Thanks kinow
@github6043 reading this now at home,
ERROR: Failed to build gem native extension.
This might fail if as the message says
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-27045-ytn75t.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
Do you have ruby-dev in your Ubuntu? Here's what I have:
kinow@ranma:~$ dpkg -l | grep ruby-dev
ii ruby-dev:amd64 1:3.0~exp1 amd64 Header files for compiling extension modules for Ruby (default version)
I also use this laptop I am using to write this message, with Ubuntu LTS to build and upload the gem to RubyGems, so it should work for you as we have a similar environment, except if you don't have the Ruby dev package.
Hi Bruno
�
I did sudo apt install ruby-dev
Then I get
�
dpkg -l | grep ruby
ii libruby3.0:amd64 3.0.2-7ubuntu2.4 amd64 Libraries necessary to run Ruby 3.0
ii rake 13.0.6-2 all ruby make-like utility
ii ruby 1:3.0~exp1 amd64 Interpreter of object-oriented scripting language Ruby (default version)
ii ruby-dev:amd64 1:3.0~exp1 amd64 Header files for compiling extension modules for Ruby (default version)
ii ruby-net-telnet 0.1.1-2 all telnet client library
ii ruby-rubygems 3.3.5-2 all Package management framework for Ruby
ii ruby-webrick 1.7.0-3 all HTTP server toolkit in Ruby
ii ruby-xmlrpc 0.3.2-1ubuntu0.1 all XMLRPC library for Ruby
ii ruby3.0 3.0.2-7ubuntu2.4 amd64 Interpreter of object-oriented scripting language Ruby
ii ruby3.0-dev:amd64 3.0.2-7ubuntu2.4 amd64 Header files for compiling extension modules for the Ruby 3.0
ii ruby3.0-doc 3.0.2-7ubuntu2.4 all Documentation for Ruby 3.0
ii rubygems-integration 1.18 all integration of Debian Ruby packages with Rubygems
�
Looks good now.
�
Then
�
sudo gem install bundler
sudo gem install smashing
�
and get
�
sudo gem install smashing
Fetching tilt-2.3.0.gem
Fetching eventmachine-1.2.7.gem
Fetching daemons-1.4.1.gem
Fetching thin-1.8.2.gem
Fetching concurrent-ruby-1.2.3.gem
Fetching thor-1.3.0.gem
Fetching sprockets-4.2.1.gem
Fetching rack-2.2.8.gem
Fetching mustermann-2.0.2.gem
Fetching rack-protection-2.2.4.gem
Fetching ruby2_keywords-0.0.5.gem
Fetching sinatra-2.2.4.gem
Fetching multi_json-1.15.0.gem
Fetching sinatra-contrib-2.2.4.gem
Fetching ffi-1.16.3.gem
Fetching sassc-2.4.0.gem
Fetching raabro-1.4.0.gem
Fetching tzinfo-2.0.6.gem
Fetching et-orbi-1.2.7.gem
Fetching fugit-1.9.0.gem
Fetching rufus-scheduler-3.9.1.gem
Fetching execjs-2.9.1.gem
Fetching coffee-script-source-1.12.2.gem
Fetching coffee-script-2.4.1.gem
Fetching smashing-1.3.6.gem
Successfully installed thor-1.3.0
Successfully installed rack-2.2.8
Building native extensions. This could take a while...
ERROR: Error installing smashing:
ERROR: Failed to build gem native extension.
�
current directory: /var/lib/gems/3.0.0/gems/eventmachine-1.2.7/ext
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-2230124-1vlpph.rb extconf.rb
checking for -lcrypto... extconf.rb failed
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
�
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)3.0
--with-ssl-dir
--without-ssl-dir
--with-ssl-include
--without-ssl-include=${ssl-dir}/include
--with-ssl-lib
--without-ssl-lib=${ssl-dir}/lib
--with-openssl-config
--without-openssl-config
--with-pkg-config
--without-pkg-config
--with-crypto-dir
--without-crypto-dir
--with-crypto-include
--without-crypto-include=${crypto-dir}/include
--with-crypto-lib
--without-crypto-lib=${crypto-dir}/lib
--with-cryptolib
--without-cryptolib
/usr/lib/ruby/3.0.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/3.0.0/mkmf.rb:564:in `try_link0'
from /usr/lib/ruby/3.0.0/mkmf.rb:582:in `try_link'
from /usr/lib/ruby/3.0.0/mkmf.rb:801:in `try_func'
from /usr/lib/ruby/3.0.0/mkmf.rb:1029:in `block in have_library'
from /usr/lib/ruby/3.0.0/mkmf.rb:971:in `block in checking_for'
from /usr/lib/ruby/3.0.0/mkmf.rb:361:in `block (2 levels) in postpone'
from /usr/lib/ruby/3.0.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/3.0.0/mkmf.rb:361:in `block in postpone'
from /usr/lib/ruby/3.0.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/3.0.0/mkmf.rb:357:in `postpone'
from /usr/lib/ruby/3.0.0/mkmf.rb:970:in `checking_for'
from /usr/lib/ruby/3.0.0/mkmf.rb:1024:in `have_library'
from extconf.rb:8:in `block in check_libs'
from extconf.rb:8:in `all?'
from extconf.rb:8:in `check_libs'
from extconf.rb:95:in `<main>'
�
To see why this extension failed to compile, please check the mkmf.log which can be found here:
�
/var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/eventmachine-1.2.7/mkmf.log
�
extconf failed, exit code 1
�
Gem files will remain installed in /var/lib/gems/3.0.0/gems/eventmachine-1.2.7 for inspection.
Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/eventmachine-1.2.7/gem_make.out
�
�
From: Bruno P. Kinoshita @.> Sent: Thursday, February 15, 2024 8:12 PM To: Smashing/smashing @.> Cc: github6043 @.>; Mention @.> Subject: Re: [Smashing/smashing] Installing on Ubuntu 22.04 LTS fails (Issue #202)
�
@github6043 https://github.com/github6043 reading this now at home,
ERROR: Failed to build gem native extension.
This might fail if as the message says
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-27045-ytn75t.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
Do you have ruby-dev in your Ubuntu? Here's what I have:
$ dpkg -l | grep ruby-dev
in the Logfile I see
�
package configuration for openssl is not found
"x86_64-linux-gnu-gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-3.0.0 -I/usr/include/ruby-3.0.0/ruby/backward -I/usr/include/ruby-3.0.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/ruby3.0-ohOwi0/ruby3.0-3.0.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -lruby-3.0 -lm -lc"
checked program was:
/ begin /
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/ end /
�
From: Bruno P. Kinoshita @.> Sent: Thursday, February 15, 2024 8:12 PM To: Smashing/smashing @.> Cc: github6043 @.>; Mention @.> Subject: Re: [Smashing/smashing] Installing on Ubuntu 22.04 LTS fails (Issue #202)
�
@github6043 https://github.com/github6043 reading this now at home,
ERROR: Failed to build gem native extension.
This might fail if as the message says
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-27045-ytn75t.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
Do you have ruby-dev in your Ubuntu? Here's what I have:
$ dpkg -l | grep ruby-dev
after this
�
apt install build-essential libssl-dev
�
I get
�
sudo gem install smashing
Building native extensions. This could take a while...
Successfully installed eventmachine-1.2.7
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - getcwd
�
From: Bruno P. Kinoshita @.> Sent: Thursday, February 15, 2024 8:12 PM To: Smashing/smashing @.> Cc: github6043 @.>; Mention @.> Subject: Re: [Smashing/smashing] Installing on Ubuntu 22.04 LTS fails (Issue #202)
�
@github6043 https://github.com/github6043 reading this now at home,
ERROR: Failed to build gem native extension.
This might fail if as the message says
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-27045-ytn75t.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
Do you have ruby-dev in your Ubuntu? Here's what I have:
$ dpkg -l | grep ruby-dev
Installed now, thanks Bruno
sudo gem install smashing Fetching daemons-1.4.1.gem Fetching thin-1.8.2.gem Fetching concurrent-ruby-1.2.3.gem Fetching thor-1.3.0.gem Fetching rack-2.2.8.gem Fetching eventmachine-1.2.7.gem Fetching sprockets-4.2.1.gem Fetching tilt-2.3.0.gem Fetching rack-protection-2.2.4.gem Fetching ruby2_keywords-0.0.5.gem Fetching mustermann-2.0.2.gem Fetching sinatra-2.2.4.gem Fetching multi_json-1.15.0.gem Fetching sinatra-contrib-2.2.4.gem Fetching ffi-1.16.3.gem Fetching sassc-2.4.0.gem Fetching raabro-1.4.0.gem Fetching tzinfo-2.0.6.gem Fetching et-orbi-1.2.7.gem Fetching fugit-1.9.0.gem Fetching rufus-scheduler-3.9.1.gem Fetching execjs-2.9.1.gem Fetching coffee-script-source-1.12.2.gem Fetching coffee-script-2.4.1.gem Fetching smashing-1.3.6.gem Successfully installed thor-1.3.0 Successfully installed rack-2.2.8 Building native extensions. This could take a while... Successfully installed eventmachine-1.2.7 Successfully installed daemons-1.4.1 Building native extensions. This could take a while... Successfully installed thin-1.8.2 Successfully installed concurrent-ruby-1.2.3 Successfully installed sprockets-4.2.1 Successfully installed tilt-2.3.0 Successfully installed rack-protection-2.2.4 Successfully installed ruby2_keywords-0.0.5 Successfully installed mustermann-2.0.2 Successfully installed sinatra-2.2.4 Successfully installed multi_json-1.15.0 Successfully installed sinatra-contrib-2.2.4 Building native extensions. This could take a while... Successfully installed ffi-1.16.3 Building native extensions. This could take a while... Successfully installed sassc-2.4.0 Successfully installed raabro-1.4.0 Successfully installed tzinfo-2.0.6 Successfully installed et-orbi-1.2.7 Successfully installed fugit-1.9.0 Successfully installed rufus-scheduler-3.9.1 Successfully installed execjs-2.9.1 Successfully installed coffee-script-source-1.12.2 Successfully installed coffee-script-2.4.1 Successfully installed smashing-1.3.6 Parsing documentation for thor-1.3.0 Installing ri documentation for thor-1.3.0 Parsing documentation for rack-2.2.8 Installing ri documentation for rack-2.2.8 Parsing documentation for eventmachine-1.2.7 Installing ri documentation for eventmachine-1.2.7 Parsing documentation for daemons-1.4.1 Installing ri documentation for daemons-1.4.1 Parsing documentation for thin-1.8.2 Installing ri documentation for thin-1.8.2 Parsing documentation for concurrent-ruby-1.2.3 Installing ri documentation for concurrent-ruby-1.2.3 Parsing documentation for sprockets-4.2.1 Installing ri documentation for sprockets-4.2.1 Parsing documentation for tilt-2.3.0 Installing ri documentation for tilt-2.3.0 Parsing documentation for rack-protection-2.2.4 Installing ri documentation for rack-protection-2.2.4 Parsing documentation for ruby2_keywords-0.0.5 Installing ri documentation for ruby2_keywords-0.0.5 Parsing documentation for mustermann-2.0.2 Installing ri documentation for mustermann-2.0.2 Parsing documentation for sinatra-2.2.4 Installing ri documentation for sinatra-2.2.4 Parsing documentation for multi_json-1.15.0 Installing ri documentation for multi_json-1.15.0 Parsing documentation for sinatra-contrib-2.2.4 Installing ri documentation for sinatra-contrib-2.2.4 Parsing documentation for ffi-1.16.3 Installing ri documentation for ffi-1.16.3 Parsing documentation for sassc-2.4.0 Installing ri documentation for sassc-2.4.0 Parsing documentation for raabro-1.4.0 Installing ri documentation for raabro-1.4.0 Parsing documentation for tzinfo-2.0.6 Installing ri documentation for tzinfo-2.0.6 Parsing documentation for et-orbi-1.2.7 Installing ri documentation for et-orbi-1.2.7 Parsing documentation for fugit-1.9.0 Installing ri documentation for fugit-1.9.0 Parsing documentation for rufus-scheduler-3.9.1 Installing ri documentation for rufus-scheduler-3.9.1 Parsing documentation for execjs-2.9.1 Installing ri documentation for execjs-2.9.1 Parsing documentation for coffee-script-source-1.12.2 Installing ri documentation for coffee-script-source-1.12.2 Parsing documentation for coffee-script-2.4.1 Installing ri documentation for coffee-script-2.4.1 Parsing documentation for smashing-1.3.6 Installing ri documentation for smashing-1.3.6 Done installing documentation for thor, rack, eventmachine, daemons, thin, concurrent-ruby, sprockets, tilt, rack-protection, ruby2_keywords, mustermann, sinatra, multi_json, sinatra-contrib, ffi, sassc, raabro, tzinfo, et-orbi, fugit, rufus-scheduler, execjs, coffee-script-source, coffee-script, smashing after 52 seconds 25 gems installed
Well, close, but not ready yet
smashing new icinga create icinga create icinga/.gitignore create icinga/Gemfile create icinga/README.md create icinga/Rakefile create icinga/assets/fonts/fa-brands-400.eot create icinga/assets/fonts/fa-brands-400.svg create icinga/assets/fonts/fa-brands-400.ttf create icinga/assets/fonts/fa-brands-400.woff create icinga/assets/fonts/fa-brands-400.woff2 create icinga/assets/fonts/fa-regular-400.eot create icinga/assets/fonts/fa-regular-400.svg create icinga/assets/fonts/fa-regular-400.ttf create icinga/assets/fonts/fa-regular-400.woff create icinga/assets/fonts/fa-regular-400.woff2 create icinga/assets/fonts/fa-solid-900.eot create icinga/assets/fonts/fa-solid-900.svg create icinga/assets/fonts/fa-solid-900.ttf create icinga/assets/fonts/fa-solid-900.woff create icinga/assets/fonts/fa-solid-900.woff2 create icinga/assets/images/logo.png create icinga/assets/javascripts/application.coffee create icinga/assets/javascripts/d3-3.2.8.js create icinga/assets/javascripts/dashing.gridster.coffee create icinga/assets/javascripts/gridster/jquery.gridster.min.js create icinga/assets/javascripts/gridster/jquery.leanModal.min.js create icinga/assets/javascripts/jquery.knob.js create icinga/assets/javascripts/rickshaw-1.4.3.min.js create icinga/assets/stylesheets/all.css create icinga/assets/stylesheets/application.scss create icinga/assets/stylesheets/brands.css create icinga/assets/stylesheets/jquery.gridster.min.css create icinga/assets/stylesheets/solid.css create icinga/config.ru create icinga/dashboards/layout.erb create icinga/dashboards/sample.erb create icinga/dashboards/sampletv.erb create icinga/jobs/buzzwords.rb create icinga/jobs/convergence.rb create icinga/jobs/sample.rb create icinga/jobs/twitter.rb.disabled create icinga/lib create icinga/public/404.html create icinga/public/favicon.ico create icinga/widgets/clock/clock.coffee create icinga/widgets/clock/clock.html create icinga/widgets/clock/clock.scss create icinga/widgets/comments/comments.coffee create icinga/widgets/comments/comments.html create icinga/widgets/comments/comments.scss create icinga/widgets/graph/graph.coffee create icinga/widgets/graph/graph.html create icinga/widgets/graph/graph.scss create icinga/widgets/iframe/iframe.coffee create icinga/widgets/iframe/iframe.html create icinga/widgets/iframe/iframe.scss create icinga/widgets/image/image.coffee create icinga/widgets/image/image.html create icinga/widgets/image/image.scss create icinga/widgets/list/list.coffee create icinga/widgets/list/list.html create icinga/widgets/list/list.scss create icinga/widgets/meter/meter.coffee create icinga/widgets/meter/meter.html create icinga/widgets/meter/meter.scss create icinga/widgets/number/number.coffee create icinga/widgets/number/number.html create icinga/widgets/number/number.scss create icinga/widgets/text/text.coffee create icinga/widgets/text/text.html create icinga/widgets/text/text.scss
bundle
Fetching gem metadata from https://rubygems.org/..............
Resolving dependencies...
Bundle complete! 1 Gemfile dependency, 26 gems now installed.
Use bundle info [gemname]
to see where a bundled gem is installed.
smashing start
bundler: failed to load command: thin (/usr/local/bin/thin)
/var/lib/gems/3.0.0/gems/execjs-2.9.1/lib/execjs/runtimes.rb:68:in autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) from /var/lib/gems/3.0.0/gems/execjs-2.9.1/lib/execjs.rb:5:in
<top (required)>' from /var/lib/gems/3.0.0/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in
require'
from /var/lib/gems/3.0.0/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in <top (required)>' from /var/lib/gems/3.0.0/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in
require'
from /var/lib/gems/3.0.0/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in <top (required)>' from /var/lib/gems/3.0.0/gems/smashing-1.3.6/lib/dashing/app.rb:5:in
require'
from /var/lib/gems/3.0.0/gems/smashing-1.3.6/lib/dashing/app.rb:5:in <top (required)>' from /var/lib/gems/3.0.0/gems/smashing-1.3.6/lib/dashing.rb:3:in
require'
from /var/lib/gems/3.0.0/gems/smashing-1.3.6/lib/dashing.rb:3:in <top (required)>' from config.ru:1:in
require'
from config.ru:1:in block in <main>' from /var/lib/gems/3.0.0/gems/rack-2.2.8/lib/rack/builder.rb:125:in
instance_eval'
from /var/lib/gems/3.0.0/gems/rack-2.2.8/lib/rack/builder.rb:125:in initialize' from config.ru:1:in
new'
from config.ru:1:in <main>' from /var/lib/gems/3.0.0/gems/thin-1.8.2/lib/rack/adapter/loader.rb:33:in
eval'
from /var/lib/gems/3.0.0/gems/thin-1.8.2/lib/rack/adapter/loader.rb:33:in load' from /var/lib/gems/3.0.0/gems/thin-1.8.2/lib/thin/controllers/controller.rb:182:in
load_rackup_config'
from /var/lib/gems/3.0.0/gems/thin-1.8.2/lib/thin/controllers/controller.rb:72:in start' from /var/lib/gems/3.0.0/gems/thin-1.8.2/lib/thin/runner.rb:203:in
run_command'
from /var/lib/gems/3.0.0/gems/thin-1.8.2/lib/thin/runner.rb:159:in run!' from /var/lib/gems/3.0.0/gems/thin-1.8.2/bin/thin:6:in
<top (required)>'
from /usr/local/bin/thin:25:in load' from /usr/local/bin/thin:25:in
<top (required)>'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli/exec.rb:58:in load' from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli/exec.rb:58:in
kernel_load'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli/exec.rb:23:in run' from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli.rb:451:in
exec'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/command.rb:28:in run' from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
invoke_command'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor.rb:527:in dispatch' from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli.rb:34:in
dispatch'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/base.rb:584:in start' from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli.rb:28:in
start'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/exe/bundle:28:in block in <top (required)>' from /var/lib/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/friendly_errors.rb:117:in
with_friendly_errors'
from /var/lib/gems/3.0.0/gems/bundler-2.5.6/exe/bundle:20:in <top (required)>' from /usr/local/bin/bundle:25:in
load'
from /usr/local/bin/bundle:25:in `
I think you might need Node. Smashing uses CoffeeScript which requires node to convert it to JS (if I remember well).
But good progress!!!
Yesssss, node did the Job.
�
smashing start
2024-02-15 22:14:55 +0000 Thin web server (v1.8.2 codename Ruby Razor)
2024-02-15 22:14:55 +0000 Maximum connections set to 1024
2024-02-15 22:14:55 +0000 Listening on 0.0.0.0:3030, CTRL+C to stop
�
Best regards and thanks for supporting
�
From: Bruno P. Kinoshita @.> Sent: Thursday, February 15, 2024 10:54 PM To: Smashing/smashing @.> Cc: github6043 @.>; Mention @.> Subject: Re: [Smashing/smashing] Installing on Ubuntu 22.04 LTS fails (Issue #202)
�
But good progress!!!
— Reply to this email directly, view it on GitHub https://github.com/Smashing/smashing/issues/202#issuecomment-1947401086 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJXVL2IXTJM72UYBAFPNN43YTZ7YDAVCNFSM6AAAAABDKDRO4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGQYDCMBYGY . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AJXVL2KK3VR4HV27KSXXB7LYTZ7YDA5CNFSM6AAAAABDKDRO4OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTUCL5X4.gif Message ID: @. @.> >
Excellent! I'll leave it to you to close to confirm it's working on Ubuntu LTS now. :+1:
Hi again, one final question, how to connect to Icinga2 API, the same way as in former Dashing ?
Icinga2? I haven't used it in a long time. But the gist is that you will have to choose a Ruby HTTP client (Net::HTTP, RestClient, HTTPParty, etc.), and write the code that queries the Icinga2 REST API for what you want.
This code needs to be called in a job. And you must choose where to store the Auth data for your job to use somewhere safely.
The easiest way is to look at the Dashing/Smashing examples, and see if they work out of the box (there might be someone on GitHub maintaining a widget + job for this), or use that code as base.
Then if you make it generic so others can use, you can update our Wiki with a link to your widget repo.
Hi, any help is appreciated. I'm stuck with this, former Installation was Dashing on Ubuntu 20 LTS, I had to migrate to 22 LTS
Step two does not work 👍
Install bundler
$ gem install bundler
Install smashing
$ gem install smashing
Create a new project
$ smashing new my-project
Change Directory into the project
$ cd my-project
Install the bundle of project specific gems
$ bundle
Start the example dashboard!
$ smashing start
*ERROR: Error installing smashing: ERROR: Failed to build gem native extension.
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240215-255135-jefh5k.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/3.0.0/gems/eventmachine-1.2.7 for inspection. Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/eventmachine-1.2.7/gem_make.out