rb-gsl icon indicating copy to clipboard operation
rb-gsl copied to clipboard

Undefined symbol: gsl_sf_legendre_array_size (on Arch Linux)

Open elisaado opened this issue 8 years ago • 2 comments

I installed the gem, and tried it out but I got this error:

	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/eli/.gem/ruby/2.4.0/gems/gsl-2.1.0.3/lib/gsl.rb:11:in `<top (required)>'
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from (irb):1
	from /usr/bin/irb:11:in `<main>'

OS: Arch Linux (x86_64)

elisaado avatar Nov 28 '17 21:11 elisaado

I'm running into a similar issue on Arch Linux, with ruby 2.5:

Traceback (most recent call last): [SNIP]

1: from /home/mun/.gem/ruby/2.5.0/gems/gsl-2.1.0.3/lib/gsl.rb:11:in <top (required)>' /home/mun/.gem/ruby/2.5.0/gems/gsl-2.1.0.3/lib/gsl.rb:11:in require': /home/mun/.gem/ruby/2.5.0/gems/gsl-2.1.0.3/lib/gsl_native.so: undefined symbol: gsl_sf_legendre_array_size - /home/mun/.gem/ruby/2.5.0/gems/gsl-2.1.0.3/lib/gsl_native.so (LoadError)

Did you ever find a solution? My current workaround is to downgrade to ruby 2.4...

munterkalmsteiner avatar Jan 08 '18 20:01 munterkalmsteiner

The function is deprecated in GSL and the GSL gem need to update to reflect the deprecation. https://www.rdocumentation.org/packages/gsl/versions/2.1-1/topics/gsl-deprecated

da2x avatar Aug 08 '19 12:08 da2x