Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`attach_function': Function 'Pa_GetVersion' not found in [libportaudio.so] (FFI::NotFoundError) #2

Closed
tbraun89 opened this issue Feb 2, 2014 · 1 comment

Comments

@tbraun89
Copy link

tbraun89 commented Feb 2, 2014

I get this error when I try to run the examples:

~/.rvm/gems/ruby-2.1.0/gems/ffi-1.9.3/lib/ffi/library.rb:261:in `attach_function': Function 'Pa_GetVersion' not found in [libportaudio.so] (FFI::NotFoundError)
    from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio/api.rb:9:in `<module:API>'
    from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio/api.rb:1:in `<top (required)>'
    from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio.rb:9:in `<module:PortAudio>'
    from ~/.rvm/gems/ruby-2.1.0/gems/ffi-portaudio-0.1.2/lib/ffi-portaudio.rb:3:in `<top (required)>'
    from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
    from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
    from ~/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
    from spectrum.rb:1:in `<main>'

On this system:

ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
Linux 3.12-1-amd64 #1 SMP Debian 3.12.8-1 (2014-01-19) x86_64 GNU/Linux

I also tried it with older ruby versions but that didn't change anything. (libportaudio-dev [18.1-7.1] is installed)

@nanki
Copy link
Owner

nanki commented Feb 3, 2014

I wrote this for portaudio v19. You can choose portaudio19-dev package on debian system.

@tbraun89 tbraun89 closed this as completed Feb 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants