osx mavericks - Load Error when requiring taglib-ruby -


i'm trying use ruby wrapper gem taglib play around id3 tags in practice program. i'm getting load errors regarding requiring of taglib ruby gem.

i've installed gem project via rubygems , requiring gem stated in number of posts:

require 'taglib' 

these software versions i'm working with:

  • ruby 2.0.0p481
  • taglib-ruby (0.7.1)
  • taglib-1.9.1

i'm on mac mavericks 10.9.5, using rubymine ide. i'm not sure if installation correct taglib (the original, not ruby wrapper). used homebrew download .tar.gz file , unzipped this. taglib 1.10 folder sitting in local downloads folder - should placed somewhere else?

as mentioned, i'm requiring 'taglib' @ top of .rb file. error i'm getting when trying run file is:

'require': cannot load such file -- taglib (loaderror) 

i'm pretty new ruby , so else need clarify, please ask. appreciated, lot.

when require file, file must either in $load_path variable ruby, or explicitly indicated in require string.

the error posted specific this. require command leaves off extension, load other types of files other ruby if available. see documentation on require method more information.

if have installed library in ~/my_projects/music_analyzer/taglib_unzip_folder can use require '~/my_projects/music_analyzer/taglib_unsip_folder/taglib , error messages should change.

if have installed gem, , using rvm, should not use sudo, should use gem install taglib-ruby

and in case not need specify folder name, path included in ruby's load path.

if using ide, , ide not using same environment, end load problems, installation , ide's environment may not identical.

instead of using ide, can test these things out right @ terminal, using irb.

>> require 'taglib' => true 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -