Error: Could not find executable in PATH or GAUGE_ROOT while creating the gauge project from eclipse

2,911 views
Skip to first unread message

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 10:14:36 AM2/15/16
to getgauge, Prudhvi Kamal
I have installed gauge using HomeBrew and also installed the gauge plugin successfully in eclipse. The regular commands work fine but when I try to create a project in eclipse, I get the error "

Could not find executable in PATH or GAUGE_ROOT. Gauge is not installed." 



Gauge is available on "/usr/local/cellar/" and "/usr/local/opt". I am new to mac and not sure on how to add the GAUGE_ROOT env variable. The documentation just says add the location .. but do not provide the exact steps for adding the GAUGE_ROOT in mac.


I have also verified the the /usr/local/bin is in path and in the /etc/hosts/. Any help in this would be greatly helpful and appreciated.

Screen Shot 2016-02-15 at 10.13.41 AM.png

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 10:35:16 AM2/15/16
to getgauge, pru...@comitydesigns.com
I also have the gauge available in the usr/local/bin and also added the GAUGE_ROOT in the .zshrc file by adding the following lines and then sourced the file. But still the same issue while creating a project from eclipse.
  • # add gauge root variable
  • export GAUGE_ROOT=/urs/local/opt/gauge
  • export PATH=$PATH:$GAUGE_ROOT/bin

Mahendra Kariya

unread,
Feb 15, 2016, 10:55:55 AM2/15/16
to getgauge, pru...@comitydesigns.com
Hi Prudhvi,

Setting environment variables in Mac is very similar to Linux. Your solution of setting the environment variables in zshrc file should work. If it's still not working, try the following troubleshooting steps.

With your existing setup:
  1. Did you restart your terminal (or run the command source ~/.zshrc) after changing the zshrc file? If not, your changes in zshrc may not have been applied.
  2. It seems to me /usr/local/opt/gauge is the path of the actual Gauge executable file. If this is the case, please set GAUGE_ROOT to /usr/local/opt.
Fresh Installation:
  1. From your description, it looks like you have multiple instances of Gauge installed. If this assumption is correct, our recommendation would be to uninstall all the Gauge installations and undo all the environment variable changes that you have done.
  2. Download the Gauge installer (.pkg file) for Mac from http://getgauge.io/get-started/index.html and run it. 
  3. Or if you wish to install via homebrew, then run brew update and finally brew install gauge

Step 2 or 3 should take care of everything, including setting up of all the required environment variables. You should directly be able to use Gauge without doing anything, if you follow one of these methods.

Feel free to get in touch with us if you face any issues.


Happy Testing!





--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/5914a556-d219-4ee5-b178-2c25b7ca886c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Apoorva M

unread,
Feb 15, 2016, 11:11:41 AM2/15/16
to getg...@googlegroups.com, pru...@comitydesigns.com
@Prudhvi, 

Can you also try launching Eclipse from terminal?
Open IntelliJ/Eclipse IDE from command-line, so that it gets environment variables you have set: open /Applications/Eclipse*.app

Apoorva MApplication Developer
ThoughtWorks

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 11:17:03 AM2/15/16
to getgauge, pru...@comitydesigns.com
Hi Apoorva, I have tried this approach as well and still the same issue. I was able to install or use gauge from command line but not sure why it is failing to create project from eclipse. I have also uninstalled gauge and installed it again and I see the gauge executable in /user/local/bin. 

Thanks,

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 11:18:30 AM2/15/16
to getgauge, pru...@comitydesigns.com
Hi Mahendra, I have uninstalled gauge from brew and installed it using the " http://getgauge.io/get-started/index.html " and the gauge executable is available only in "/usr/local/bin" and the cli works normal as earlier but the eclipse project creation still fails.

Thanks,

Mahendra Kariya

unread,
Feb 15, 2016, 11:35:22 AM2/15/16
to getgauge, pru...@comitydesigns.com
Glad to know that Gauge is working for you from command line.
For the Eclipse issue, could you please post the error that you are getting?


Thanks!


N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 11:40:31 AM2/15/16
to getgauge, pru...@comitydesigns.com
When I try to create a gauge project (New -> Project -> GaugeProject) I get the following error


Make sure Gauge is installed and available in Path

Could not find executable in PATH or GAUGE_ROOT. Gauge is not installed.


Also attaching the images from my machine. Please let me know if you should need any other information.



Thanks,

Screen Shot 2016-02-15 at 11.38.43 AM.png
Screen Shot 2016-02-15 at 11.37.24 AM.png
Screen Shot 2016-02-15 at 11.39.38 AM.png

Apoorva M

unread,
Feb 15, 2016, 11:46:11 AM2/15/16
to getg...@googlegroups.com, pru...@comitydesigns.com
@Prudhvi, 

The error you getting says that Eclipse is not able to find Gauge. Can you try this?
  • Gauge is installed at /usr/local/ by default. Make sure you have Gauge installed only in this location. Running command `which gauge ` should return you `/usr/local/bin/gauge`.
  • Since Gauge is in its default install location, remove the GAUGE_ROOT env variable that you have manually added. 
  • Make sure /usr/local/bin is present in PATH. If not, please add it. 
  • Close all open instances of Eclipse. Launch Eclipse from Terminal as : open /Applications/Eclipse.app.
  • Try clearing Eclipse cache and restart. 
This should work if Gauge is accessible to Eclipse. Currently, we would recommend you to use Gauge-IntelliJ plugin as it is more mature than Eclipse plugin.

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 2:19:09 PM2/15/16
to getgauge, pru...@comitydesigns.com
Hi Apoorva, I was able to create a project now but its odd that the created project does not show up in the package explorer and I have to create that as a JAVA project again to be able to view it. Also, it complains about the com.thoughtworks package. Any thing else I would be missing?


Thanks,

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 3:02:52 PM2/15/16
to getgauge, pru...@comitydesigns.com
@apoorva, After adding the jar files from gauge manually (thought that they would be added automatically when we create gauge project) the errors were resolved. How would we run the specs from eclipse. Also the spec editor seems not to work giving the java.lang.nullpointer exception.


I will also try installing the intellij


Thanks,

N V Prudhvi kamal kanteti

unread,
Feb 15, 2016, 9:23:06 PM2/15/16
to getgauge, pru...@comitydesigns.com
@apoorva

Thanks a lot for all your help. I have installed the intelliJ Idea IDE and everything is working fine now. working with eclipse plug-in is very hard as it is breaking in multiple places. It would be great if we have a working plug-in in eclipse so we can use the our existing configuration/ Version Controls working seamlessly without having to work with a new IDE.

I want to thank you once again for all the immediate help/support you have provided in getting me started on Gauge.


- Prudhvi

Apoorva M

unread,
Feb 16, 2016, 12:34:27 AM2/16/16
to getg...@googlegroups.com, Prudhvi Kamal
@Prudhvi, We value your feedback! 

There are a few open issues in Gauge-Eclipse plugin. It would be great if you can log any of the issues you find in Eclipse plugin here

Any Contributions/Pull requests from community is highly appreciated!

P.S. Please bear with us! You can even try importing Eclipse settings to IntelliJ IDE. 

Apoorva MApplication Developer
ThoughtWorks

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages