I'm using Fastlane one my admin account (Mac OS) and it works great.
I try now to install and configure Jenkins + Fastlane but when jenkins try to run a fastlane commande, I get that error : can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException)
Path of my fastlane install is : /Users/myusername/.rvm/rubies/ruby-2.4.2/bin
When I try to update fastlane in jenkins account (su jenkins), console say I'm not sudo. No error with my account.
Already tried to inject Path in jenkins conf and to set RVM-managed environment version. But it failed.
Use anyone of below
Using RubyGems
sudo gem install fastlane -NV
Alternatively using Homebrew
brew cask install fastlane
See link for reference link
If you using pipeline in jenkins use sh 'gem install fastlane'
it works fine.
This is what I did to fix a similar bug:
gem update bundler
For me all that needed to be done was rvm default and then reinstall what was needed, because for some reason it was installing for the older ruby version and not the newer one, so when it was accessing it on Jenkins, it was checking the new version which had nothing.
Related
I installed capistrano vía gem install capistrano, but when I run cap install to initialize a project, that command outputs:
command not found: cap
Previously I installed ruby 2.6.5p114 with brew install ruby and updated my path to new version, this is in a MacOS version 10.14.6
I want to deploy a Symfony4 project, any idea about what step I'm missing?
Ruby Gem's may not be as consistent as the use of Composer. I use Capistrano to deploy a number of my own sites (including Symfony), and mostly followed the instructions on the capistrano-symfony page: https://github.com/capistrano/symfony/
Write the Gemfile
Install, with bundle install
Run: bundle exec cap install
Edit the capistrano config, and run with bundle exec cap prod deploy to use the configurations at config/deploy.rb & config/deploy/prod.rb
When using fastlane and cocoapods to build our iOS app I noticed that fastlane does not use the version of cocoapods that I have installed using
sudo gem install cocoapods
When running
pod --version
it returns the latest version which is of this moment
1.3.1
However, when running a build lane in fastlane it uses cocoapods version 1.2.1 for some reason.
I use this in my Fastfile to clean and pod install
cocoapods(
clean: true,
podfile: "Podfile"
)
Is there a way I can tel fastlane to use a specific version of cocoapods? Or use the version I have installed manually?
It's recommended to use a Gemfile:
It is recommended that you use a Gemfile to define your dependency on fastlane. This will clearly define the used fastlane version, and its dependencies, and will also speed up using fastlane.
Install bundler using sudo gem install bundler
Create a ./Gemfile in the root directory of your project with the content:
source "https://rubygems.org"
gem 'fastlane'
gem 'cocoapods'
Run [sudo] bundle update and add both the ./Gemfile and the ./Gemfile.lock to version control
Every time you run fastlane, use bundle exec fastlane [lane]
On your CI, add [sudo] bundle install as your first build step
To update fastlane, just run [sudo] bundle update
I just deploy jekyll in a vps, and config git post-receive hook on it. When I push blog update to vps from my laptop, I run into this error:
remote: /usr/bin/env: ruby_executable_hooks: No such file or directory
I searched for a while, and tried the method proposed in this post: bundle update: env: ruby_executable_hooks: No such file or directory, i.e., executing the commands below:
rvm #global do gem regenerate_binstubs
gem regenerate_binstubs
But it doesn't help, the error remains. Since I'm not familiar with rvm or ruby, could anyone give me a hint?
use wrappers, example:
$ which jekyll
# /path/to/rvm/gems/ruby-version/bin/jekyll
in the returned path replace bin with wrappers so you get:
/path/to/rvm/gems/ruby-version/wrappers/jekyll
this is a script that will load proper environment and fix your problem, wrappers are generated automatically withing RVM.
You need to refresh the executable-hooks to the latest version by running following command in the Terminal:
sudo gem install --user-install executable-hooks
I had the same problem, but I have bundler, not rubygems-bundler, and my gem doesn't recognise regenerate_binstubs.
rvm all-gemsets do gem update bundler installed bundler 1.7.11 and fixed it for me.
Updating ruby gems worked for me
gem install rubygems-update
update_rubygems
faslane env: ruby_executable_hooks: No such file or directory
re-install faslane
sudo gem install fastlane -NV
I installed redmine on my server.
Redmine is installed in /usr/share/redmine.
I try to install redmine backlogs using the installation guide)
As mentionned in the guide, I execute the following commands:
cd /usr/share/redmine
bundle exec rake redmine:backlogs:install
It fails with the message: Could not locate Gemfile
It looks like the bundle command is waiting for a gemfile in the directory but this file is missing.
Do you have any idea how to solve this problem?
EDIT: Note that I installed Redmine using the Wheezy backports. Maybe we cannot install plugins when Redmine has been installed from the Debian package....
Thank you
That url is for sale now, your best bet is to build it from source from the most currently updated fork from that project which is: https://github.com/ahelten/redmine_backlogs
Try this:
cd ~/redmine/plugins
git clone https://github.com/ahelten/redmine_backlogs.git
git checkout feature/v1.0.6_inherit_fields
Install libs and gems needed by backlogs
sudo apt-get install libxslt-dev libxml2-dev
sudo gem install nokogiri -v '1.5.11'
bundle install
Test Your Work
bundle exec rails server webrick -e production
NOTE: this assumes that you have git and whatever other development tools and gems you need installed. If you fail to install a gem, scroll up and read the output, chances are you need to add a package mentioned in the output first (sudo apt-get install foo). If you fail to find a gem you are either building in a directory without a Gemfile or the gem the gem file wants doesn't exist ... search rubygems.org if that happens)
I have problem installing devdocs in my mac.
I tried to do the steps there but I'm stucked installing bundler.
I tried the following in the terminal:
gem install bundler //this worked
bundle install //this prints error: Bundler::GemfileNotFound
I already have the latest Ruby version required but still printing the same error.
I tried to execute bundle install in the path where the gemfile is still the same error.
I needed to install this in my pc for offline browsing. For those who successfully installed this in their mac machine, please help me.
This error indicates that you're trying to run the command in a directory that does not contain any Gemfile. I think that in your local directory, you forgot to clone the devdocs Git repo. So go to your local devdocs directory and type:
git clone https://github.com/Thibaut/devdocs
Then go to this directory, and type the following commands:
bundle install
thor docs:download --all
rackup
That should work, and devdocs should be available at localhost:9292. If that does not, maybe your ruby version is too old (devdocs requires Ruby 2.1.0 or greater). In this case, I strongly recommend you to us rvm to update ruby (rvm install ruby-2.1.0).