GitLab CI error: gem install bundler on MacOSYou don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)How to check for an active Internet connection on iOS or macOS?How to make --no-ri --no-rdoc the default for gem install?sqlite3-ruby install error on UbuntuInstalling gem or updating RubyGems fails with permissions errorHow to install a specific version of a ruby gem?How do I install pip on macOS or OS X?How to install therubyracer gem on 10.10 Yosemite?homebrew not working on OSXFastlane command not found
I want light controlled by one switch, not two
What is this light passenger prop airplane which crash landed in East Kalimantan, Borneo in 1983?
Why didn't Balak request Bilam to bless his own people?
Found old paper shares of Motorola Inc that has since been broken up
Do gauntlets count as armor?
What does a Nintendo Game Boy do when turned on without a game cartridge inserted?
How to split the polynomial .
Do I care if the housing market has gone up or down, if I'm moving from one house to another?
Are there foods that astronauts are explicitly never allowed to eat?
Aren't all schwa sounds literally /ø/?
Date input format problem
Do you need to have the original move to take a "Replaces:" move?
Router restarts after big git push or big file upload
How far off did Apollo 11 land?
Project Euler # 25 The 1000 digit Fibonacci index
Satellite in orbit in front of and behind the Moon
How can I show that the speed of light in vacuum is the same in all reference frames?
Conditional statement in a function for PS1 are not re-evalutated
Manager is asking me to eat breakfast from now on
Killing a star safely
Redirection operator, standard input and command parameters
Nilpotent elements of Lie algebra and unipotent groups
Linux ext4 restore file and directory access rights after bad backup/restore
Could Europeans in Europe demand protection under UN Declaration on the Rights of Indigenous Peoples?
GitLab CI error: gem install bundler on MacOS
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)How to check for an active Internet connection on iOS or macOS?How to make --no-ri --no-rdoc the default for gem install?sqlite3-ruby install error on UbuntuInstalling gem or updating RubyGems fails with permissions errorHow to install a specific version of a ruby gem?How do I install pip on macOS or OS X?How to install therubyracer gem on 10.10 Yosemite?homebrew not working on OSXFastlane command not found
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Using MacOS-10.14.3, there is a problem with my GitLab CI for an iOS project (using fastlane):
I try to create a gitlab-runner on my Mac and I get quite far with it, except the following error message occurs during CI-failure:
It seems that the error happens at the before_script
for some reason.
Any idea what could be wrong here ?
From the fastlane page, I follow these instructions: Link
The Gitlab error seems to be related to a Ruby issue on Mac
I followed this suggestion here: I tried to re-install ruby, doing the following in a Terminal:
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
But that did not help anything...
In case, interested, finding out what ruby is on my Mac:
ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
which ruby
/usr/local/opt/ruby/bin/ruby
I use docker with image alpine:latest
and I run my gitlab-runner from a Mac-Terminal with the following command:
sudo gitlab-runner run
Here is my Gemfile:
source 'https://rubygems.org'
gem 'fastlane'
gem 'cocoapods'
...and here is my gitlab-ci.yml file:
stages:
- unit_tests
- test_flight
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane tests
tags:
- ios
test_flight_build:
dependencies: []
stage: test_flight
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane testflight
tags:
- ios
only:
- /^release-.*$/
- master
Any idea on how to change this GitLab CI File (or do anything else) so that this annoying gem install bundler
error goes away ?? Any help appreciated.
ruby macos continuous-integration gitlab fastlane
|
show 1 more comment
Using MacOS-10.14.3, there is a problem with my GitLab CI for an iOS project (using fastlane):
I try to create a gitlab-runner on my Mac and I get quite far with it, except the following error message occurs during CI-failure:
It seems that the error happens at the before_script
for some reason.
Any idea what could be wrong here ?
From the fastlane page, I follow these instructions: Link
The Gitlab error seems to be related to a Ruby issue on Mac
I followed this suggestion here: I tried to re-install ruby, doing the following in a Terminal:
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
But that did not help anything...
In case, interested, finding out what ruby is on my Mac:
ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
which ruby
/usr/local/opt/ruby/bin/ruby
I use docker with image alpine:latest
and I run my gitlab-runner from a Mac-Terminal with the following command:
sudo gitlab-runner run
Here is my Gemfile:
source 'https://rubygems.org'
gem 'fastlane'
gem 'cocoapods'
...and here is my gitlab-ci.yml file:
stages:
- unit_tests
- test_flight
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane tests
tags:
- ios
test_flight_build:
dependencies: []
stage: test_flight
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane testflight
tags:
- ios
only:
- /^release-.*$/
- master
Any idea on how to change this GitLab CI File (or do anything else) so that this annoying gem install bundler
error goes away ?? Any help appreciated.
ruby macos continuous-integration gitlab fastlane
Maybe you could try modifying the script to add a - echo $PATH and - which ruby to make sure that it is using the correct one
– Gorille
Mar 26 at 13:55
I am not really familiar with such kind of scripts. Could you please be a bit more specific ? And, thank you very much for your support. How would such aPATH
look like ? Do you have an example of thisecho $PATH
script ?
– iKK
Mar 26 at 14:12
Could another docker image help ? Does anybody know how to set up GitLab CI on a Mac ??
– iKK
Mar 26 at 14:26
Did you try using ruby image for docker? hub.docker.com/_/ruby
– tejasbubane
Mar 26 at 14:33
no, haven't tried this. I tried:docker pull ruby
. But how do I start this ruby-docker image ?? (sorry but I am new to docker, gitlab, ci)
– iKK
Mar 26 at 15:10
|
show 1 more comment
Using MacOS-10.14.3, there is a problem with my GitLab CI for an iOS project (using fastlane):
I try to create a gitlab-runner on my Mac and I get quite far with it, except the following error message occurs during CI-failure:
It seems that the error happens at the before_script
for some reason.
Any idea what could be wrong here ?
From the fastlane page, I follow these instructions: Link
The Gitlab error seems to be related to a Ruby issue on Mac
I followed this suggestion here: I tried to re-install ruby, doing the following in a Terminal:
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
But that did not help anything...
In case, interested, finding out what ruby is on my Mac:
ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
which ruby
/usr/local/opt/ruby/bin/ruby
I use docker with image alpine:latest
and I run my gitlab-runner from a Mac-Terminal with the following command:
sudo gitlab-runner run
Here is my Gemfile:
source 'https://rubygems.org'
gem 'fastlane'
gem 'cocoapods'
...and here is my gitlab-ci.yml file:
stages:
- unit_tests
- test_flight
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane tests
tags:
- ios
test_flight_build:
dependencies: []
stage: test_flight
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane testflight
tags:
- ios
only:
- /^release-.*$/
- master
Any idea on how to change this GitLab CI File (or do anything else) so that this annoying gem install bundler
error goes away ?? Any help appreciated.
ruby macos continuous-integration gitlab fastlane
Using MacOS-10.14.3, there is a problem with my GitLab CI for an iOS project (using fastlane):
I try to create a gitlab-runner on my Mac and I get quite far with it, except the following error message occurs during CI-failure:
It seems that the error happens at the before_script
for some reason.
Any idea what could be wrong here ?
From the fastlane page, I follow these instructions: Link
The Gitlab error seems to be related to a Ruby issue on Mac
I followed this suggestion here: I tried to re-install ruby, doing the following in a Terminal:
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
But that did not help anything...
In case, interested, finding out what ruby is on my Mac:
ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
which ruby
/usr/local/opt/ruby/bin/ruby
I use docker with image alpine:latest
and I run my gitlab-runner from a Mac-Terminal with the following command:
sudo gitlab-runner run
Here is my Gemfile:
source 'https://rubygems.org'
gem 'fastlane'
gem 'cocoapods'
...and here is my gitlab-ci.yml file:
stages:
- unit_tests
- test_flight
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane tests
tags:
- ios
test_flight_build:
dependencies: []
stage: test_flight
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- fastlane testflight
tags:
- ios
only:
- /^release-.*$/
- master
Any idea on how to change this GitLab CI File (or do anything else) so that this annoying gem install bundler
error goes away ?? Any help appreciated.
ruby macos continuous-integration gitlab fastlane
ruby macos continuous-integration gitlab fastlane
edited Mar 26 at 13:06
iKK
asked Mar 26 at 12:34
iKKiKK
1,5652 gold badges24 silver badges51 bronze badges
1,5652 gold badges24 silver badges51 bronze badges
Maybe you could try modifying the script to add a - echo $PATH and - which ruby to make sure that it is using the correct one
– Gorille
Mar 26 at 13:55
I am not really familiar with such kind of scripts. Could you please be a bit more specific ? And, thank you very much for your support. How would such aPATH
look like ? Do you have an example of thisecho $PATH
script ?
– iKK
Mar 26 at 14:12
Could another docker image help ? Does anybody know how to set up GitLab CI on a Mac ??
– iKK
Mar 26 at 14:26
Did you try using ruby image for docker? hub.docker.com/_/ruby
– tejasbubane
Mar 26 at 14:33
no, haven't tried this. I tried:docker pull ruby
. But how do I start this ruby-docker image ?? (sorry but I am new to docker, gitlab, ci)
– iKK
Mar 26 at 15:10
|
show 1 more comment
Maybe you could try modifying the script to add a - echo $PATH and - which ruby to make sure that it is using the correct one
– Gorille
Mar 26 at 13:55
I am not really familiar with such kind of scripts. Could you please be a bit more specific ? And, thank you very much for your support. How would such aPATH
look like ? Do you have an example of thisecho $PATH
script ?
– iKK
Mar 26 at 14:12
Could another docker image help ? Does anybody know how to set up GitLab CI on a Mac ??
– iKK
Mar 26 at 14:26
Did you try using ruby image for docker? hub.docker.com/_/ruby
– tejasbubane
Mar 26 at 14:33
no, haven't tried this. I tried:docker pull ruby
. But how do I start this ruby-docker image ?? (sorry but I am new to docker, gitlab, ci)
– iKK
Mar 26 at 15:10
Maybe you could try modifying the script to add a - echo $PATH and - which ruby to make sure that it is using the correct one
– Gorille
Mar 26 at 13:55
Maybe you could try modifying the script to add a - echo $PATH and - which ruby to make sure that it is using the correct one
– Gorille
Mar 26 at 13:55
I am not really familiar with such kind of scripts. Could you please be a bit more specific ? And, thank you very much for your support. How would such a
PATH
look like ? Do you have an example of this echo $PATH
script ?– iKK
Mar 26 at 14:12
I am not really familiar with such kind of scripts. Could you please be a bit more specific ? And, thank you very much for your support. How would such a
PATH
look like ? Do you have an example of this echo $PATH
script ?– iKK
Mar 26 at 14:12
Could another docker image help ? Does anybody know how to set up GitLab CI on a Mac ??
– iKK
Mar 26 at 14:26
Could another docker image help ? Does anybody know how to set up GitLab CI on a Mac ??
– iKK
Mar 26 at 14:26
Did you try using ruby image for docker? hub.docker.com/_/ruby
– tejasbubane
Mar 26 at 14:33
Did you try using ruby image for docker? hub.docker.com/_/ruby
– tejasbubane
Mar 26 at 14:33
no, haven't tried this. I tried:
docker pull ruby
. But how do I start this ruby-docker image ?? (sorry but I am new to docker, gitlab, ci)– iKK
Mar 26 at 15:10
no, haven't tried this. I tried:
docker pull ruby
. But how do I start this ruby-docker image ?? (sorry but I am new to docker, gitlab, ci)– iKK
Mar 26 at 15:10
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357317%2fgitlab-ci-error-gem-install-bundler-on-macos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357317%2fgitlab-ci-error-gem-install-bundler-on-macos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Maybe you could try modifying the script to add a - echo $PATH and - which ruby to make sure that it is using the correct one
– Gorille
Mar 26 at 13:55
I am not really familiar with such kind of scripts. Could you please be a bit more specific ? And, thank you very much for your support. How would such a
PATH
look like ? Do you have an example of thisecho $PATH
script ?– iKK
Mar 26 at 14:12
Could another docker image help ? Does anybody know how to set up GitLab CI on a Mac ??
– iKK
Mar 26 at 14:26
Did you try using ruby image for docker? hub.docker.com/_/ruby
– tejasbubane
Mar 26 at 14:33
no, haven't tried this. I tried:
docker pull ruby
. But how do I start this ruby-docker image ?? (sorry but I am new to docker, gitlab, ci)– iKK
Mar 26 at 15:10