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

RubyRipper crashes when encoding to MP3 #588

Open
GoogleCodeExporter opened this issue Dec 28, 2015 · 3 comments
Open

RubyRipper crashes when encoding to MP3 #588

GoogleCodeExporter opened this issue Dec 28, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

1) Please describe the steps to reproduce the situation:
a.Launch RubyRipper (rrip_gui or rrip_cli).
b.Check "MP3" under Codecs in Preferences.
c.Attempt to rip a CD

2) What is the expected output? What do you see instead?
I expect all selected tracks on the CD to be ripped and converted to MP3. 
Instead, RR trial rips the first selected track twice, generates an MD5 sum, 
then crashes with the following error:

/usr/lib64/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': 
cannot load such file -- iconv (LoadError)
    from /usr/lib64/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /usr/lib64/ruby/site_ruby/2.0.0/rr_lib.rb:2464:in `mp3'
    from /usr/lib64/ruby/site_ruby/2.0.0/rr_lib.rb:2336:in `doMp3'
    from /usr/lib64/ruby/site_ruby/2.0.0/rr_lib.rb:2233:in `encodeTrack'
    from /usr/lib64/ruby/site_ruby/2.0.0/rr_lib.rb:2195:in `block (2 levels) in startEncoding'

3) What version of rubyripper are you using? On what operating system? The
gtk2 of commandline interface?

Version 0.6.2 on Linux (OpenSuse 13.1 Gnome), using either gtk or cli interface.

4) Is this not already fixed with the latest & greatest code? See for
instructions the Source tab above.

Unknown

5) Does the problem happen with all discs? If not, please attach
the output of cdparanoia -Q with a disc that gives trouble.

This problem happens with all discs I've tried.

6) Please explain why this change is important for you. Also, how many
users would benefit from this change?

This change is important for being able to add music to my MP3 collection. As 
it is now, I have to rip to flac (which does work), then use a separate 
converter to convert the flacs to MP3s.

Please provide any additional information below. The more usefull
information provided, the sooner the issue will be fixed.

Note that ruby versions older than 1.9 are no longer supported. You are
advised to upgrade instead.

Original issue reported on code.google.com by [email protected] on 1 Dec 2013 at 5:33

@GoogleCodeExporter
Copy link
Author

According to the information provided in 
http://stackoverflow.com/questions/7829886/in-require-no-such-file-to-load-iconv
-loaderror I used the command

gem install iconv

As it is mentioned this a deprecated module. Therefore with no maintainer of 
rubyripper I guess the tool will soon become obsolete.

Original comment by [email protected] on 5 Apr 2014 at 5:37

@GoogleCodeExporter
Copy link
Author

Following the on hint above, and other related hints, I did the following two 
things in Fedora 21 on May 27, 2015:
yum install ruby-devel
gem install iconv

The yum command ensures header files and libraries for Ruby get installed.
The gem command installs the 1.04 iconv Ruby gem, and configures it to work 
just fine.
After these 2 commands, RubyRipper worked exactly as it always has, with no 
issues.

Original comment by [email protected] on 28 May 2015 at 1:01

@erwanm
Copy link

erwanm commented Mar 19, 2017

In case anyone is still using good old rubyripper, the same fix for Ubuntu (tested with 16.04):

sudo apt install ruby-dev
sudo gem install iconv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants