If you have any error like this.......
ruby script/server
=> Booting WEBrick...
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:159:in
`require_frameworks': no such file to load -- openssl (RuntimeError)
from
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:88:in
`process'
from
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `send'
from
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in `run'
from /home/kenny/KensLib/myrails/Dec28/config/environment.rb:13
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
`require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in
`new_constants_in'
... 7 levels...
from
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/server:3
--
Just Copy the below code & paste in your terminal
sudo apt-get install libopenssl-ruby
It will install lib file for openssl-ruby
Friday, February 15, 2008
Saturday, February 2, 2008
How to convert WMA files into MP3 using RUBY
How to convert wma files into mp3
Download your wma files from site. (eg. http://www.123musiq.com -- old songs)
Then
Open ur terminal & install the following
Download your wma files from site. (eg. http://www.123musiq.com -- old songs)
Then
Open ur terminal & install the following
$sudo apt-get install mplayer lame
$sudo gem install r2mp3
Then Copy ur wma file into ur home folder(eg: /home/user1)
eg: mv /home/user1/desktop/*.wma /home/user1
Go to ur home folder cd /home/user1
Then change ur wma file name into some simple name (Optional)
eg: cp file_name -123musiq.com.wma file_name.wma
Then Open ur irb and
Start Coding
require 'rubygems' # if install using gem
require 'r2mp3'
Converter.new(:convert=>:wma,:file=>"test.wma"){|f| f.to_mp3}
Here u have to mention file=>"path/file_name.wma"
Subscribe to:
Posts (Atom)