I'm trying to get the coverage result of the tests for IOS. I use the slather coverage command. But I keep getting the error
/Users/bamboo/.gem/bin/slather: /Users/bamboo/.rbenv/versions/3.1.0/bin/ruby: bad interpreter: No such file or directory
When I run the whereis ruby command on the agent, I see the following result
ruby: /usr/bin/ruby /usr/share/man/man1/ruby.1
Could you please write me how to change the path to ruby for slather from the task Bamboo pipeline? Thanks.
Looks like ruby 3.1.0 has not been installed with rbenv on your system yet.
Run:
rbenv install 3.1.0
bundle install in your project directory if there is a Gemfile
slather coverage.
Related
Slather command not found error after successful installation. I have updated the commands used in Terminal. Can anyone help to identify the missing flags or setting?
MacBook-Pro-5:DemoAPP mackbook$ gem install slather
Successfully installed slather-2.7.2
Parsing documentation for slather-2.7.2
Done installing documentation for slather after 0 seconds
1 gem installed
MacBook-Pro-5:DemoAPP mackbook$ slather
**-bash: slather: command not found**
A bit like in this question, check your gem environment, gem env and your $PATH
Look for the executable slather in one of the gem paths, and make sure the full path is referenced in your current $PATH.
I'm trying to install middleman. I installed the gem and can see it in my gem list. However, if I enter middleman -v I get the message middleman: command not found.
I tried installing bundler to run middleman with a Gemfile in the project directory using bundle exec middleman. But when I try to run bundle I get the following error:
bash: /usr/bin/bundle: /usr/bin/ruby: bad interpreter: No such file or directory
I'm running ruby v. 2.6 and installed middleman v.4.3.5 on Ubuntu 18.04.
Any help would be very much appreciated; I've wasted half a day trying to solve this and I'm still on high waters!
which ruby gives me /snap/bin/ruby and my path variable is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/share/rvm/bin. The problem is that ruby is in the snap folder.
I just uninstalled the ruby snap (and snaps in general) and installed "normal" Ruby, which had the correct path (usr/bin/ruby). The middleman installation then worked fine.
EDIT: After correcting my job configuration, I now receive the following error when running this job:
[workspace] $ /usr/local/bin/bin/rake kickoff
/usr/bin/env: ruby: No such file or directory
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE
I am trying to set up a Jenkins server to run cucumber tests via a rake task.
I have the rake plugin installed, ruby 2.0.0 installed, and all necessary gems installed. I also have Rubygems installed.
Rake is installed here:
/usr/local/bin/rake
Ruby is installed here:
/usr/local/bin/ruby
Here is a screenshot of the Rake configuration for Jenkins:
Here is a screenshot of the Ruby configuration for Jenkins:
Despite what that warning says, Rubygems is installed to:
/usr/local/bin/gem
When I try to run a simple test (that just evaluates to true always), I get the following error:
Building in workspace /webdata/jenkins/jobs/kickoff_build/workspace
Updating https://svnprod.x.net/svn/x/trunk/inside_automation at revision '2015-07-10T09:50:36.495 -0400'
At revision 9227
no change for https://svnprod.x.net/svn/x/trunk/inside_automation since the previous build
FATAL: /usr/bin/rake doesn't exist
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE
Why is it looking for rake in /usr/bin ???? I pointed this job directly to the directory of the rake file, /usr/local/bin/rake?
I was able to correct this issue, and several others, by creating a symlink to the rake executable.
I am developing a Sencha touch 2 application. I have been following the "Styling the user interface of a Sencha Touch application" tutorial on theming of secha touch applications.
It requires me to install Ruby, Compass and SASS.
I installed Ruby using the installer from rubyinstaller.org.
On executing the following command, I get the expected result which confirms correct installation:
C:\>ruby -v
ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
Current source is up to date:
C:\>gem sources
** CURRENT SOURCES **
http://rubygems.org/
Next, since I am behind a proxy, I used the following command to install HAML/Compass:
C:\>gem install -p [proxy:port] compass
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format**
Can someone help me? I found solutions such as system update, gem sources update, but everything is up to date on my system.
Edit:
C:\>gem install compass
works perfectly fine on my private system. When I try the same command from my workplace I need to use the proxy as mentioned above and that results in an error.
I assume the ERROR occurs since the web sense at my workplace blocks these downloads.
Solution: I downloaded the required gems: chunky_png, fssm, compass, sass, haml etc.. directly from http://rubygems.org/gems and placed these gems in my local directory.
After this I tried gem install compass. This first searches your local directory. On finding the required gems, installation takes place. Does not require connection to the ruby website.
Note: Run the command from the path where the gems are located
eg: I have placed the gems in C:\Ruby193\lib\ruby\gems\1.9.1\gems
So I run the following command :
C:\Ruby193\lib\ruby\gems\1.9.1\gems>gem install compass
I had a similar problem, it worked on my own private laptop, but failed while using a virtual server at work (running Ubuntu 12.10) that used a proxy.
Following the suggestion I found here, from the command line I defined:
export HTTPS_PROXY=proxy-address:proxy-port-number
export HTTP_PROXY=proxy-address:proxy-port-number
and then my gem install package worked fine.
I'm trying to run rspec on my machine for the first time. I did gem install rspec in the global gemset. However, when I try to do
spec intranet_reader_spec.rb
I get
-bash: spec: command not found
And when I try to do
bundle exec rspec spec intranet_reader_spec.rb
I get
Could not locate Gemfile
(Note, I don't have a gemfile. I'm just running one test script from a ruby book)
I found these instructions for adding spec to the path, i.e. put the following in bashrc
export PATH=$PATH:/Users/<UserName>/.gem/ruby/1.8/bin
However, that didn't work. I note that on my mac. if I navigate to .gem/ruby/1.8 and do 'ls', it doesn't have a 'bin.' In the 1.8 folder, it has
cache doc gems specifications
Can anyone tell me what I might be doing wrong?
If you don't have a Gemfile then you can't run bundle exec.
Also, the command for RSpec 2.x is rspec. You might be following an outdated tutorial, since the command was spec in version 1.x.
Just run:
rspec intranet_reader_spec.rb