I just installed Puppet using Homebrew on OS X, but unfortunately, when I try to run puppet, I get an error message about a file that could not be loaded. As I have absolutely no experience with Ruby, I don't know what to look for or what to search for (except the error message itself, which brings too many results, so I don't know which direction to follow).
Ruby itself is installed, as far as I can tell. At least the irb command takes me to an interactive shell where I can run
puts "Hello world!"
successfully. Can anybody give me some hints on what to do?
The error message is as follows:
schneehase:~ golo$ puppet
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rubygems/custom_require.rb:31:in `gem_original_require': no such file
to load -- facter (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rubygems/custom_require.rb:31:in `require'
from /Library/Ruby/Site/1.8/puppet.rb:6
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rubygems/custom_require.rb:31:in `require'
from /Library/Ruby/Site/1.8/puppet/util/command_line.rb:12
from /usr/bin/puppet:3:in `require'
from /usr/bin/puppet:3
Any help is greatly appreciated :-)
You should update your Ruby installation. 1.8 is outdated and I had a lot of similar error messages as long as I used the pre-installed version of Ruby. You can use rvm to upgrade to the current version of Ruby with this tutorial.
Related
I want to install a Emacs package "evernote-mode" and there is a step in the installation of the package which needs to run command gem install evernote_oauth in shell. If I run the command I get the error message:
let: Wrong type argument: listp, /var/lib/gems/2\.5\.0/gems/evernote-thrift-1\.25\.2/lib/thrift/protocol/base_protocol\.rb:254:
There are \ and / in the directory of reliable package "evernote_oauth". If I remove the needed package "evernote_oauth" or not to run command gem install evernote_oauth, there is an error message
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- evernote_oauth (LoadError)
from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /usr/bin/enclient.rb:44:in `<main>'
so I guess the reason of the error is relevant to the command gem install evernote_oauth. Maybe there is something wrong in the process of using gem to install package evernote_oauth in Linux which caused the directory mistake (both \ and / in the directory). But I have no idea how to solve it.
PS:Thanks all the people help me include the person help edit the question,I am a rookie in stackoverflow,I really appreciate the help!
The evernote-mode package is no longer maintained. See issue #38.
From the research I did for the topic, I saw some recommendations to install tty.js with npm, but it wouldn't install as well - some sort of python exe missing from the system error.
I am able to run the program from Git CMD but it is all confusing for me because I am familiar with unix based consoles :(
The way I installed node.js and npm : All was doen with the installer provided by node.js.
Any insights? Thank you in advance!
I have installed tty.js in a linux enviroment and it works great, you should some building essentials installed, such as:
gcc
g++
make
As well as Python 2.7. When installing using npm, it will look for all the dependencies and as I understand it will compile some C code that does the magic behind the scenes. I haven't tried it on Windows, but what I have seen there is the C code designed for windows, so it probably will run.
Maybe I will be of more help if you copy what you get on the npm installation.
have you tried using Git Bash? That is what I used for the most part as well and acts more unix like. If you're on a PC, an alternative is using ConEMU as they give you a shell that is unix like. Just wanted to give you some options if you're still running into trouble, I know this is super late :)
I have run groovy script for a while from command line. Recently I have started to work with spock/groovy in the eclipse. I have run couple of test using Groovy Console when console was loaded from eclipse. Any way after these activities I have tried to execute groovy from command line and it failed with the following error:
Caused by: groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-xml is loaded in version 2.4.3 and you are trying to load version 2.4.1
I was using gvm tool to reinstall groovy and set is a primary version but still have the problem. Something was changed from eclipse where my groovy installation gets affected and can not be fixed by by reinstalling.
I have some search done but did not find solution. most solution were mentioning this problem but they were trying to fix this withing eclipse, where in my case I am trying to fix it outside of eclipse. Also will be nice if I be able to prevent this from happening in the future. If somebody have similar experience please share.
Thanks,
Alexander
I am Using thin server(thin (1.5.0)) and trying to start server with command thin start , which was running fine earlier But now gives me below error:(I dont Remember what wrong i have done which cause this error now) Error:
trunk$ thin start
/usr/bin/thin:5:in `require': no such file to load -- thin (LoadError)
from /usr/bin/thin:5
I am using ruby 1.8.7 .Please Help me with this its almost killing me. Trying to Resolve since 2 days. Thanks in Advance for any Help..
I guess this is happening after i tried to install rvm 1.8.6.
I have sorted out the problem.. All i have done is I just Rebuild my all gems with following command
gem pristine --all
And all error has resolved, I guess when server is not able to load gem, Its better to rebuild gem which can sort out all error.
I have installed Ruby 2, devkit & Watir. I am getting the following error. Can anyone please help me resolve this issue?
C:\devkit>irb
DL is deprecated, please use Fiddle
irb(main):001:0> require "watir"
=> true
irb(main):002:0> browser = Watir::Browser.new
LoadError: cannot load such file -- watir-classic
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in`require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb:48:in `load_driver'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb:40:in `load_driver_for'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb:8:in `new'
from (irb):2
from C:/Ruby200/bin/irb:12:in `<main>'
irb(main):003:0>
I'm not sure what happened then, but in case someone else runs into this problem here is what i did to get it working. Install the watir-classic (as suggested), install ffi, uninstall ffi, install ffi again. For some reason i had 2 variations of ffi (might be due to originally installing Ruby 64 bit?), but I also uninstalled 64 bit Ruby and installed 32 bit to get this all working. – breezy katt Feb 26 at 13:47
I'm assuming you're talking about using Watir on a Windows machine. From my experience installing Ruby in the correct way is the most difficult part.
First of all, install everything as if you're on a 32 bit system. The 64 bit installation often brings unwanted issues.
That said, the ffi gem can also cause issues, so you'll have to uninstall it, and re-install with specific tags:
gem uninstall ffi
gem install ffi --platform ruby
Finally, the error that is showing LoadError: cannot load such file -- watir-classic simply means that what you're doing is trying to make use of a certain gem that is not there. In this case watir-classic, so the following should fix that:
gem install watir-classic
A complete guide on installing Watir on Windows