Ruby: How to fix PATH error in Atom Runner? - ruby

When trying to run Atom Runner, I'm getting the following error:
Unable to find command: ruby
Are you sure PATH is configured correctly?
I've followed the troubleshooting advice and added a PATH environment variable and restarted my PC but looks like it's incorrect.
This is what I tried adding:
%HOME%\myusername.rbenv\versions\3.1.0\lib\ruby\
%HOME%\myusername.rbenv\
What else can I try?

Related

Windows 10 golang setup. Error, Not in an environment

I am running into issues setting up go for the first time on a Windows 10 machine.
I followed the instructions from the install. https://golang.org/doc/install?download=go1.10.windows-386.msi
When I CD to my project E:\goProjects\goWebApp\src and run go build, I receive the following error.
C:\windows\system32>go version
Not in an environment
C:\Users\MyUser~1\AppData\Local\Temp\go_there.bat' is not recognized as an internal or external command,
operable program or batch file.
My system variables are as follows:
GOPATH=E:\goProjects\goWebApp
GOROOT=C:\Go
PATH=C:\Go\bin
If I run go version from C:\Go\bin everything works fine. Running go command from anywhere outside of this directory does not work. I have also tried restarting my cmd prompt and restarting my computer. Still no luck. Has anyone else ran into this issue? Or know what I might have done wrong?
Turns out I had two go locations in my PATH (sort of). When I ran the command where go from command prompt two paths were returned.
Something like this..
C:\tools\devTools\bin
C:\Go\bin\go.exe
There apparently was a bat file in devTools\bin called go.bat. This was unrelated to golang itself, just coincidental naming unfortunately.This was executing instead of the go binary, which in return was throwing the random error with the Not in an environment message.
To fix the issue I just removed the devTools path from my PATH variable for now.

How can I install go mobile and have it work on windows?

I am having issues installing gomobile on windows with the command :
go get golang.org/x/mobile/cmd/gomobile
It doesn't give me any error but it doesn't seem to be doing anything. When trying to execute gomobile afterwards I get the error:
'gomobile' is not recognized as an internal or external command,
operable program or batch file.
So I figured the PATH where the go executable is differs from GOPATH. To find what my GOPATH was, I used the command
go env GOPATH
Have you added the path to gomobile location to your PATH variable?
Check if it is included with batch command
set PATH

Issue on installing a own written logstash plugin

I am doing my firts steps on writing my own logstash filter plugins. I followed the instructions of https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_filter_plugin.html but I do not get it done.
I do this on my windows machine. The following has been ensured
Proper JAVA_HOME is set and its bin folder is added to PATH
JRuby is installed
Proper JRUBY_HOME is set and its bin folder is added to PATH
I did the following
Cloned and did NO source code changes on https://github.com/logstash-plugins/logstash-filter-example.git
Did a successful gem build which created the file logstash-filter-example-3.0.0.gem
Wanted to see if the plugin is working and tried to install it
Got this error message
logstash-plugin.bat install logstash-filter-example-3.0.0.gem
LoadError: no such file to load -- clamp
require at org/jruby/RubyKernel.java:956
require at C:/jruby-9.1.5.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
<main> at D:\hust\playground\logstash_filter_plugin\logstash-2.4.0\logstash-2.4.0\lib\pluginmanager\main.rb:14
I am a newbie to this world. Any suggestions what I am doing wrong here?
BW Hubert

Bundler Starting with full path - issue

I am trying to run bundle from inside a folder of my RoR app and it works as expected.
However, when I try to run it using the full path (need this for the cron jobs), it just fails with the error "in `require': no such file to load -- bundler (LoadError)" . Any ideas how to fix this?
Just found out that my original issue for the cron was the PATH variable, so I just directly set it up in the cron.

Error while installing Maven on windows 7

So following the instructions found here http://www.mkyong.com/maven/how-to-install-maven-in-windows/ I attempted to set up Maven on a windows 7 environment. Problem is when I ever I run mvn --version or any command with mvn for that matter I get an error saying:
Error: Could not find or load main class org.codehaus.plexus.classwords.launcher.Launcher
Any ideas as to what might be causing this and how to fix it?
If you take a look to the doc you can read this:
Why do I get java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher when I try to execute Maven?
This sometimes happens when $M2_HOME is not the same as your $PATH. That is, when 'which mvn' does not match $M2_HOME/bin/mvn.

Resources