oxidized-script fails to install on ubuntu 24.04 (ruby 3.2)
as per title
root@OXIDIZED:/home/azureuser# gem install oxidized-script
Building native extensions. This could take a while...
ERROR: Error installing oxidized-script:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/3.2.0/gems/rugged-0.99.0/ext/rugged
/usr/bin/ruby3.2 -I/usr/lib/ruby/vendor_ruby extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
*** 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.2
--with-sha1dc
--without-sha1dc
--use-system-libraries
extconf.rb:101:in `block in <main>': undefined method `exists?' for Dir:Class (NoMethodError)
Dir.mkdir("build") if !Dir.exists?("build")
^^^^^^^^
Did you mean? exist?
from extconf.rb:100:in `chdir'
from extconf.rb:100:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/3.2.0/extensions/x86_64-linux-gnu/3.2.0/rugged-0.99.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/3.2.0/gems/rugged-0.99.0 for inspection.
Results logged to /var/lib/gems/3.2.0/extensions/x86_64-linux-gnu/3.2.0/rugged-0.99.0/gem_make.out
this seems a problem with a dependency, specifically rugged
Are there any workarounds?
I'm attempting to figure this out - maybe remove ruby 3.2 and install 3.1? I'm a linux noob so please don't flame me.
i was able to install ruby 3.1.x
by following this and making sure i installed 3.1.2
:~$ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
and cleaned up any instance of Ruby3.2.0 my removing anything related to ruby3.2.0
remove ruby 3.2.0
rm -Rf /usr/lib/ruby
rm -Rf /var/lib/gems/3.2.0
rm -Rf /usr/share/rubygems-integration/
rm -Rf /usr/share/ri/3.2.0/
rm -Rf /usr/include/ruby-3.2.0/
rm -Rf /usr/bin/ruby3.2
rm -Rf /etc/apparmor.d/abstractions/ruby
rm -Rf /home/<username>/.local/share/gem/ruby
rm -Rf /home/<username>/.local/share/gem/ruby/
rm -Rf /usr/bin/ruby3.2
rm -Rf /usr/include/ruby-3.2.0
rm -Rf /usr/include/x86_64-linux-gnu/ruby-3.2.0
after all that clean up i ran the
gem install oxidized-script oxidized-web
and still got the same error
@:~$ gem env home
/home/
removing the ruby and ruby-dev from the command
'apt-get install libsqlite3-dev libssl-dev pkg-config cmake libssh2-1-dev libicu-dev zlib1g-dev g++ libyaml-dev'
requires the ruby and ruby-dev - unable to be specific about which version to install.
no good.
And what about Docker container? Does it work?
Containers have all dependencies included, it won't touch containers unless you are building it using Ubuntu 22.04 as a base container build
On Tue, Dec 24, 2024, 6:39 PM John Dow @.***> wrote:
And what about Docker container? Does it work?
— Reply to this email directly, view it on GitHub https://github.com/ytti/oxidized-script/issues/51#issuecomment-2561312306, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCPIEYMMSYWTKW52Q2PL5D2HGL4DAVCNFSM6AAAAABP67VJF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRGMYTEMZQGY . You are receiving this because you authored the thread.Message ID: @.***>
On Debian 12.8 I installed everything without problems via apt, there are ruby 3.1 in the repo
awesome good to know - thank you your response
From: John Dow @.> Sent: Wednesday, December 25, 2024 2:20:29 PM To: ytti/oxidized-script @.> Cc: Charles Thorsen @.>; Comment @.> Subject: Re: [ytti/oxidized-script] oxidized-script fails to install on ubuntu 24.04 (ruby 3.2) (Issue #51)
You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
[External]
On Debian 12.8 I installed everything without problems via apt, there are ruby 3.1 in the repo
— Reply to this email directly, view it on GitHubhttps://github.com/ytti/oxidized-script/issues/51#issuecomment-2561981309, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEU7SSMZAHVYMGEJEZZSYDD2HMAP3AVCNFSM6AAAAABP67VJF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRHE4DCMZQHE. You are receiving this because you commented.Message ID: @.***>
Please remember that insurance coverage cannot be bound, amended or canceled by leaving an electronic or voice mail message. CONFIDENTIALITY NOTICE: The information contained in this communication, including attachments, may contain privileged and confidential information that is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error please notify us by telephone immediately.
ubuntu 24.04 confirmed working with 0.70.0