Build issue on ruby 3.4.5/Rocky Linux 10
Having issues installing the llama_cpp gem on ruby 3.4.5/RL-10. As you can see below, the prerequisites are indeed installed.
thanks
thornhill@abydos:~$ which ruby
~/local/bin/ruby
thornhill@abydos:~$ ruby --version
ruby 3.4.5 (2025-07-16 revision 20cda200d3) +PRISM [x86_64-linux]
thornhill@abydos:~$ gem install llama_cpp
ERROR: While executing gem ... (Gem::Exception)
OpenSSL is not available. Install OpenSSL and rebuild Ruby or use non-HTTPS sources (Gem::Exception)
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request.rb:53:in 'Gem::Request.configure_connection_for_https'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request/https_pool.rb:7:in 'Gem::Request::HTTPSPool#setup_connection'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request/http_pool.rb:40:in 'Gem::Request::HTTPPool#make_connection'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request/http_pool.rb:21:in 'Gem::Request::HTTPPool#checkout'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request.rb:135:in 'Gem::Request#connection_for'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request.rb:193:in 'Gem::Request#perform_request'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/request.rb:160:in 'Gem::Request#fetch'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/remote_fetcher.rb:317:in 'Gem::RemoteFetcher#request'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/remote_fetcher.rb:213:in 'Gem::RemoteFetcher#fetch_http'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/remote_fetcher.rb:252:in 'Gem::RemoteFetcher#fetch_path'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/source.rb:86:in 'Gem::Source#dependency_resolver_set'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/resolver/best_set.rb:24:in 'block in Gem::Resolver::BestSet#pick_sets'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/source_list.rb:94:in 'Array#each'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/source_list.rb:94:in 'Gem::SourceList#each_source'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/resolver/best_set.rb:23:in 'Gem::Resolver::BestSet#pick_sets'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/resolver/best_set.rb:29:in 'Gem::Resolver::BestSet#find_all'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/resolver/installer_set.rb:174:in 'Gem::Resolver::InstallerSet#find_all'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/resolver/installer_set.rb:62:in 'Gem::Resolver::InstallerSet#add_always_install'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/dependency_installer.rb:318:in 'Gem::DependencyInstaller#resolve_dependencies'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/commands/install_command.rb:198:in 'Gem::Commands::InstallCommand#install_gem'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/commands/install_command.rb:223:in 'block in Gem::Commands::InstallCommand#install_gems'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/commands/install_command.rb:216:in 'Array#each'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/commands/install_command.rb:216:in 'Gem::Commands::InstallCommand#install_gems'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/commands/install_command.rb:162:in 'Gem::Commands::InstallCommand#execute'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/command.rb:326:in 'Gem::Command#invoke_with_build_args'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/command_manager.rb:253:in 'Gem::CommandManager#invoke_command'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/command_manager.rb:194:in 'Gem::CommandManager#process_args'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/command_manager.rb:152:in 'Gem::CommandManager#run'
/home/thornhill/local/lib/ruby/3.4.0/rubygems/gem_runner.rb:57:in 'Gem::GemRunner#run'
/home/thornhill/local/bin/gem:12:in '
Rocky Linux 10 - BaseOS 2.4 MB/s | 13 MB 00:05
Rocky Linux 10 - AppStream 593 kB/s | 2.0 MB 00:03
Rocky Linux 10 - CRB 219 kB/s | 491 kB 00:02
Rocky Linux 10 - Extras 1.8 kB/s | 4.1 kB 00:02
Installed Packages
openssl.x86_64 1:3.2.2-16.el10 @anaconda
openssl-devel.x86_64 1:3.2.2-16.el10 @appstream
openssl-libs.x86_64 1:3.2.2-16.el10 @anaconda
Available Packages
openssl-perl.x86_64 1:3.2.2-16.el10 appstream