Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

0 votes
0 answers
136 views
irb does not use my .irbrc
On my MacOS, I have the default ruby, but for certain development task, I also have installed ruby 2.4.2 via rvm. When I explicitly invoke /usr/bin/irb my ~/.irbrc is processed (I verified it by putting a `puts :processing` at top of this file). When I use the irb which rvm puts into my PATH (i.e. i...
On my MacOS, I have the default ruby, but for certain development task, I also have installed ruby 2.4.2 via rvm. When I explicitly invoke /usr/bin/irb my ~/.irbrc is processed (I verified it by putting a puts :processing at top of this file). When I use the irb which rvm puts into my PATH (i.e. in my case /Users/MYNAME/.rvm/rubies/ruby-2.4.2/bin/irb, the ~/.irbrc is not processed. I also tried to explicitly do a export IRBRC=$HOME/.irbrc but this also did not help. What could be the reason? BTW, in case it matters: I'm using zsh as interactive shell.
user1934428 (1458 rep)
May 15, 2023, 07:34 AM • Last activity: May 15, 2023, 03:09 PM
3 votes
1 answers
2970 views
gnupg not found
I am trying to install [rvm](http://rvm.io). But I don't have gnupg/gpg installed. So I tried to install it using brew: `brew install gnupg` But after it's installed (verified by brew list), I cannot use gnupg. `which gnupg` yields: > gnupg not found I have also tried using the direct binary path: `...
I am trying to install [rvm](http://rvm.io) . But I don't have gnupg/gpg installed. So I tried to install it using brew: brew install gnupg But after it's installed (verified by brew list), I cannot use gnupg. which gnupg yields: > gnupg not found I have also tried using the direct binary path: /usr/local/Cellar/gnupg/2.2.16_1 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB In which case, I get the following error: > zsh: permission denied: /usr/local/Cellar/gnupg/2.2.16_1
Eisenheim (133 rep)
Jul 13, 2019, 01:58 PM • Last activity: Jun 11, 2022, 10:13 AM
-2 votes
2 answers
123 views
Clarification: Command which gem not showing the gem path correctly in m1 machine
I am getting below snippet while running the **which gem** in my m1 mac machine gem () { \typeset result ( \typeset rvmrc rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc") if [[ -n "${rvm_prefix:-}" ]] && ! [[ "$HOME/.rvmrc" -ef "${rvm_prefix}/.rvmrc" ]] then rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc") fi...
I am getting below snippet while running the **which gem** in my m1 mac machine gem () { \typeset result ( \typeset rvmrc rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc") if [[ -n "${rvm_prefix:-}" ]] && ! [[ "$HOME/.rvmrc" -ef "${rvm_prefix}/.rvmrc" ]] then rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc") fi for rvmrc in "${rvm_rvmrc_files[@]}" do [[ -s "${rvmrc}" ]] && source "${rvmrc}" || true done unset rvm_rvmrc_files command gem "$@" ) || result=$? hash -r return ${result:-0} }
sejn (80 rep)
Nov 3, 2021, 01:08 PM • Last activity: Jan 28, 2022, 07:37 PM
0 votes
2 answers
9280 views
Fix Terminal error message "-bash: /etc/profile.d/rvm.sh: No such file or directory"
I am trying to remove the following Terminal error message: -bash: /etc/profile.d/rvm.sh: No such file or directory I recently uninstalled RVM (Ruby Version Manager) from my MacBook Air. The terminal error appeared after I finished the RVM uninstall. The error appears every time I launch Terminal. M...
I am trying to remove the following Terminal error message: -bash: /etc/profile.d/rvm.sh: No such file or directory I recently uninstalled RVM (Ruby Version Manager) from my MacBook Air. The terminal error appeared after I finished the RVM uninstall. The error appears every time I launch Terminal. My troubleshooting so far (seaching google etc.) lead to suggestions to modify my bash files. I have checked the two files listed below and found nothing pointing to "/etc/profile.d/rvm.sh" - ~/.bashrc - ~/.bash_profile Am I missing a bash file that is causing the error? I was assuming the error had to stem from one of those two files listed above, but obviously I was wrong.
ckib16 (598 rep)
Jul 20, 2014, 06:18 PM • Last activity: Jan 30, 2018, 04:30 PM
4 votes
1 answers
5371 views
install gpg with homebrew
I want to install a new version of `ruby` via `rvm`. To install that, I need `gnupg2`. I installed it using `brew`, but it could not be linked. I get the following error message when linking with `brew link gpg2`: Linking /usr/local/Cellar/gnupg/2.1.20... Error: Could not symlink bin/gpg-agent Targe...
I want to install a new version of ruby via rvm. To install that, I need gnupg2. I installed it using brew, but it could not be linked. I get the following error message when linking with brew link gpg2: Linking /usr/local/Cellar/gnupg/2.1.20... Error: Could not symlink bin/gpg-agent Target /usr/local/bin/gpg-agent is a symlink belonging to gpg-agent. You can unlink it: brew unlink gpg-agent To force the link and overwrite all conflicting files: brew link --overwrite gnupg To list all files that would be deleted: brew link --overwrite --dry-run gnupg I have no idea what the gpg-agent does and if I can savely overwrite the link without destroying something that my system somewhere needs.
McLawrence (193 rep)
Apr 17, 2017, 10:47 AM • Last activity: Apr 17, 2017, 11:06 AM
9 votes
5 answers
4012 views
Homebrew - Somehow it happened there is no executable openssl
System Version OS X El Capitan, version 10.11.5 I installed homebrew and rvm. However, when I try to install anything with rvm (ie. rvm install 2.1.1), it says: Somehow it happened there is no executable 'openssl', run 'brew doctor' and make sure latest '' is installed properly. RVM autolibs is now...
System Version OS X El Capitan, version 10.11.5 I installed homebrew and rvm. However, when I try to install anything with rvm (ie. rvm install 2.1.1), it says: Somehow it happened there is no executable 'openssl', run 'brew doctor' and make sure latest '' is installed properly. RVM autolibs is now configured with mode '3' => 'Allow RVM to use package manager if found, install missing dependencies.', please run rvm autolibs enable to let RVM do its job or run and read rvm autolibs [help] or visit https://rvm.io/rvm/autolibs for more information. Requirements installation failed with status: 12. When I run brew doctor it says "Your system is ready to brew". I tried to change the path for Open SSL using export PATH=/usr/local/bin:$PATH and then brew link --force openssl but it still gives me the same error message. When I do which openssl it still says it is located here: /usr/bin/openssl. Any ideas on what I can do to get the openssl to work with Homebrew? Full Terminal Below: Last login: Sun Jan 15 20:36:34 on ttys000 Laurens-MacBook-Pro:~ laurensylvain$ rvm install 2.1.1 Searching for binary rubies, this might take some time. Found remote file https://rvm_io.global.ssl.fastly.net/binaries/osx/10.11/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for osx. Installing requirements for osx. Updating system.... Installing required packages: readline, openssl. Somehow it happened there is no executable 'openssl', run 'brew doctor' and make sure latest '' is installed properly. RVM autolibs is now configured with mode '3' => 'Allow RVM to use package manager if found, install missing dependencies.', please run rvm autolibs enable to let RVM do its job or run and read rvm autolibs [help] or visit for more information. Requirements installation failed with status: 12. Laurens-MacBook-Pro:~ laurensylvain$ brew doctor Your system is ready to brew. Laurens-MacBook-Pro:~ laurensylvain$ touch ~/.bash_profile; open ~/.bash_profile Laurens-MacBook-Pro:~ laurensylvain$ source ~/.bash_profile Laurens-MacBook-Pro:~ laurensylvain$ echo $PATH /usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/laurensylvain/.rvm/bin:/Users/laurensylvain/.rvm/bin Laurens-MacBook-Pro:~ laurensylvain$ brew link --force openssl Warning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.: -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib Laurens-MacBook-Pro:~ laurensylvain$ which openssl /usr/bin/openssl
Lauren (91 rep)
Jan 16, 2017, 02:04 AM • Last activity: Feb 19, 2017, 12:44 AM
1 votes
2 answers
2690 views
Using RVM and installing rspec gem for Ruby
I think I installed rvm correctly. When I type in rvm -v it outputs rvm 1.25.33 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/] However, I am trying to install the gem rspec. I type in gem install rspec but the output is ERROR: While executing gem ... (Gem::FilePermissionError) You don'...
I think I installed rvm correctly. When I type in rvm -v it outputs rvm 1.25.33 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/] However, I am trying to install the gem rspec. I type in gem install rspec but the output is ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. What should I do? What is going wrong? I can't understand the rvm docs either!
Jwan622 (147 rep)
Oct 20, 2014, 03:54 AM • Last activity: Aug 14, 2015, 09:38 AM
0 votes
0 answers
1606 views
Configure: error: clang version 3.0 or later is required - but I already have it
I'm trying to follow [this RVM installation guide][1], supposedly for Snow Leopard 10.6.8 (I should point out that `$ rvm -v` returns `-bash: rvm: command not found`), but when I run `$ curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails` it ends in this Error runni...
I'm trying to follow this RVM installation guide , supposedly for Snow Leopard 10.6.8 (I should point out that $ rvm -v returns -bash: rvm: command not found), but when I run $ curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails it ends in this Error running './configure --prefix=/Users/mac/.rvm/rubies/ruby-2.2.0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --enable-shared', showing last 15 lines of /Users/mac/.rvm/log/1427567557_ruby-2.2.0/configure.log [2015-03-28 15:33:08] ./configure current path: /Users/mac/.rvm/src/ruby-2.2.0 PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/X11/bin:/Users/mac/.rvm/bin command(5): ./configure --prefix=/Users/mac/.rvm/rubies/ruby-2.2.0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --enable-shared config.guess already exists config.sub already exists checking build system type... i386-apple-darwin10.8.0 checking host system type... i386-apple-darwin10.8.0 checking target system type... i386-apple-darwin10.8.0 i686-apple-darwin10-gcc-4.2.1: error trying to exec 'cc1': execvp: No such file or directory i686-apple-darwin10-gcc-4.2.1: error trying to exec 'cc1': execvp: No such file or directory configure: error: clang version 3.0 or later is required There has been an error while running configure. Halting the installation. Then I ran: $ which clang /usr/bin/clang $ clang -v Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin10.8.0 Thread model: posix I keep getting the same error message when I try to install RVM, even after restarting. There's clearly something weird about the fact that the target is 10.8.0 and that is *not even addressed in the guide*, so I really need actual help with this. Updating my OS isn't an option so please don't bring that up.
reggaelizard (141 rep)
Mar 28, 2015, 07:37 PM • Last activity: Mar 28, 2015, 08:27 PM
0 votes
0 answers
812 views
Want to Update OpenSSL with Ruby 2.0.0 Already Installed
I have Ruby 2.0.0-p451 installed via RVM. From what I have read online the newer versions of openssl need Ruby 2 installed. I'm running RVM 1.25.25. I currently host Ruby on Rails websites on my Mac Mini Server running Mavericks and OS X Server 3.1.1. I'm not currently using openssl but would like t...
I have Ruby 2.0.0-p451 installed via RVM. From what I have read online the newer versions of openssl need Ruby 2 installed. I'm running RVM 1.25.25. I currently host Ruby on Rails websites on my Mac Mini Server running Mavericks and OS X Server 3.1.1. I'm not currently using openssl but would like to upgrade it in light of the Heartbleed security vulnerability reported over a month ago. I am not using SSL in any of my websites. When I get ready to I may use openssl or Common Crypto. I would like both of them to be current when I make my decision. I have searched online and noticed there were problems with people that updated openssl without running Ruby 2.0.0. I have not found any issues with updating openssl after Ruby 2 was installed. I want to know the best way to upgrade openssl. I do not use Homebrew or Macports. However I believe that when I upgraded Ruby on Rails to 4.0.0 it installed/updated Macports on my server. I have found the steps below on how to install it in the Terminal if you do not want to use RVM or Homebrew. This post was written in March 2013 cd Downloads/ cd openssl-1.0.1e/ ./Configure darwin64-x86_64-cc make sudo make install Since I'm using RVM I need to know how to upgrade it and not mess up Ruby. I'm open to use Macports but I need to know the command. I would also like to know which version I should install (MD5, SHA, PGP sign, normal). Any help would be appreciated.
Pamela Cook - LightBe Corp (611 rep)
May 16, 2014, 07:03 PM • Last activity: May 16, 2014, 07:09 PM
1 votes
2 answers
1595 views
'which openssl' returns nothing when trying to upgrade OpenSSL
I've been working the last day or so to get openssl upgraded on my machine. I've followed the answers [here][1] and [here][2] and now I've got some pretty funny results. When I type `which openssl` I get no response. When I type `openssl version` I get `-bash: openssl: command not found` When I type...
I've been working the last day or so to get openssl upgraded on my machine. I've followed the answers here and here and now I've got some pretty funny results. When I type which openssl I get no response. When I type openssl version I get -bash: openssl: command not found When I type brew install openssl I get Warning: openssl-1.0.1g already installed. Why does brew recognize an installation, but my other terminal commands suggest that nothing is installed? What do I need to do to get my system to recognize the installation that brew is seeing, or what do I need to remove to allow me to do a fresh install of openssl? Edit: 'brew doctor' gives me the following: >Warning: Your XQuartz (2.7.4) is outdated >Please install XQuartz 2.7.5: > https://xquartz.macosforge.org > >Warning: Python is installed at /Library/Frameworks/Python.framework > >Homebrew only supports building against the System-provided Python or a >brewed Python. In particular, Pythons installed to /Library can interfere >with other software installs.
Mike Vezzani (11 rep)
Apr 11, 2014, 02:55 PM • Last activity: Apr 12, 2014, 03:10 AM
2 votes
0 answers
135 views
Run rake using Automator
I have install ruby using RVM. Next I create workflow in Automator, which detects new files in folder and then copies them to another dir. The next thing I want - to switch to those folder and run few rake scripts. I have tried to add next step to workflow: cd ~/blog/octopress/ rake generate rake de...
I have install ruby using RVM. Next I create workflow in Automator, which detects new files in folder and then copies them to another dir. The next thing I want - to switch to those folder and run few rake scripts. I have tried to add next step to workflow: cd ~/blog/octopress/ rake generate rake deploy But it's failed with error: > Run shell script failed - 1 error. Rake aborted What I'm doing wrong?
Ponf (121 rep)
Feb 26, 2014, 02:52 PM • Last activity: Feb 26, 2014, 03:33 PM
1 votes
2 answers
1190 views
Upgrade RVM and now PATH is broken
My `PATH` no longer includes `/usr/local/bin` even though it is the first line of `/etc/paths`: #/etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin $PATH: $ echo $PATH /usr/bin:/bin:/Users/meltemi/.rvm/bin What changed? Well all was working fine until: Recently updated RVM from 1.24.8 -> 1.25.1...
My PATH no longer includes /usr/local/bin even though it is the first line of /etc/paths: #/etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin $PATH: $ echo $PATH /usr/bin:/bin:/Users/meltemi/.rvm/bin What changed? Well all was working fine until: Recently updated RVM from 1.24.8 -> 1.25.13 on an OS X 10.9.1 machine with rvm get stable RVM warned me that there was "old stuff laying around" and to run rvm cleanup all, so I did. Then I upgraded Ruby rvm upgrade 2.0.0-p353 2.1 migrating gemsets along the way... **Edit:** I'm using zsh: #~/.zshrc # Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh ... source $ZSH/oh-my-zsh.sh # load RVM [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" ## from brew info zsh #Add the following to your zshrc to access the online help: unalias run-help autoload run-help HELPDIR=/usr/local/share/zsh/helpfiles
Meltemi (1856 rep)
Jan 8, 2014, 06:10 PM • Last activity: Jan 16, 2014, 05:01 PM
Showing page 1 of 12 total questions