I tried to install heroku because I was getting a legacy error. I went on the heroku site and tried to install it, but I kept getting the legacy warning. So I followed the instructions on the site that said this.
I think I followed the instructions correctly, and deleted the source file of heroku. I deleted the file named 'Heroku' in /Users/User/.rvm/gems/ruby-2.5.0/bin, but now when I try to reinstall Heroku, I get this warning:
Warning: heroku/brew/heroku 6.15.22 is already installed
However, when I type
heroku -v
I get an error
bash: /Users/User/.rvm/gems/ruby-2.5.0/bin/heroku: No such file or
directory
I tried uninstalling heroku with
rm -rf ~/.heroku sudo rm
and
-rf /usr/local/heroku /usr/bin/heroku
but when I tried to reinstall it after doing those commands, I get the same error as before, the 'No such file or directory' one. Can someone help me reinstall heroku?
Thanks!
Related
I'm new to CocoaPods, I tried running 'pod install' on my Mac to install my pod, but I'm getting a permissions error with the folder /Users/username/Library/Caches/CocoaPods. That folder doesn't even exist! Did I accidentally delete it at one point? How do I restore it?
There is however a folder called /Library/Caches but its not under my username, its at the root.
I'm a little confused. If someone can just direct me in the right direction, I would really appreciate it.
Here is the full error message:
Errno::EACCES - Permission denied # dir_s_mkdir - /Users/nachshonfertel/Library/Caches/CocoaPods
You can solve this in 2 ways.
Add CocoaPods folder on ~/Library/Caches/CocoaPods then try
pod install
OR
Give full permission on you project
cd your-project
chmod -R 777 .
cd ios
pod install
Turns out it was a permissions error. And the folder I thought didn't exist, was hidden in finder > Go > (Hold Down Option Key) Library
Took me 2 full days to finally figure it out!
Are you using system Ruby or have you installed Ruby with sudo?
You basically have 2 options:
use sudo pod install
Probably the easiest/fastest way for you go forward
This typically causes more problems than Ruby being owned by non-root
When you install packages they will have sudo access!
Install Ruby, non-sudo; you can try
github.com/postmodern/ruby-install together with github.com/postmodern/chruby (my personal favourite), rvm.io is also very popular
The benefit of this approach is that you also can switch Ruby version whenever you like (and as mentioned above; more secure less insecure..)
I had been struggling with this issue for a while. For some reason, in my case the problem was that the folder ~/Library/Caches/CocoaPods was not there, and cocoapods wasn't able to create it when running 'pod install'. Hence the permission error.
After trying several things, I created that folder manually (which prompted for my password), ran 'pod update' and my problem was fixed!
Hope this saves someone some trouble.
I solved the problem creating the missing folder Users (in my case the error was Permission denied # dir_s_mkdir - /Users/Users) and give full permission to all users.
I managed to solve my issue in following steps:
Create CocoaPods folder (if it doesn't exist) cd ~/Library/Caches && mkdir CocoaPods
Give access to CocoaPods folder sudo chmod 777 Cocoapods
Create Pods folder cd CocoaPods && mkdir Pods
Give access to Pods folder sudo chmod 777 Pods
I hope it helps !
I found an issue when running sudo pod install command after updating it to latest version 0.32.1. Earlier it was working very fine.
When I tried to do pod install with older cocoapods, it asked me to update to latest cocoapods version i.e. 0.32.1. After I updated by cocoapods gem, I can't do sudo pod install in my Xcode project. It gives me following error.
± sudo pod install ruby-1.9.3-p0
Password:
/Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/command.rb:328:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
CocoaPods, the Objective-C library package manager.
Commands:....
Any suggestion to overcome the issue would be very helpful. Thanks in advance.
I had to update permission on CocoaPods
sudo chown -R $USER ~/Library/Caches/CocoaPods
sudo chown -R $USER ~/.cocoapods
Since it seems to fix the problem for some people, you might want to try running "pod install" and see if it fixed your problem from that point. However, I still had a permission denied when running "pod install" for a pod item, so running the next line will overwrite permission for the pod folder.
sudo chown -R $USER ./Pods
I have removed the old podfile.lock before running pod install
Source :
cocoaPods pod install Permission denied
https://github.com/CocoaPods/CocoaPods/issues/509
I am working with windows. After reading all tips which didn't work I drove into the code base.
As a disclaimer, I am beginning phase of developing an app and my goal is to get a quick proof of concept. Therefore, this solution will only bypass that the error message as a quick hack.
In the file ~/lib/cocoapods/command.rb you will find a function on line 47 that stops the program if there is a root user.
#help! 'You cannot run CocoaPods as root.' if Process.uid == 0
Simply comment out the line. Again, this is a terrible idea to do in any situation except as a pragmatist using Windows and trying to get proof of concept out.
Nothing worked for me except the following
switched to ios platform with cd platforms/ios
switched ownership of the folder to the current user with sudo chown -R YourUsername .
Pod install
In m1 MACs run sudo arch -x86_64 pod install --allow-root to resolve this issue.
in my case, the both "folder content project" and file "project.xcodeproj" was locked "i ignore why !!! maybe the git clone provoked error :s", i unlock the folder and apply all changes for sub folder .... And it WORK FINE :D
This is the error I keep getting when I try to run meteorite
$ mrt
Stand back while Meteorite does its thing
✓ router
tag: https://github.com/tmeasday/meteor-router.git#v0.5.3
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:108
throw "There was a problem cloning repo: " + self.url;
^
There was a problem cloning repo: https://github.com/tmeasday/meteor-router.git
I've tried sudo -H npm install -g meteorite
I've installed and reinstalled it a bunch of times
I have git installed, I have Xcode installed, I have Homebrew installed and I have meteor.
All of those work.
This is my $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
This is which Git
/usr/local/bin/git
This is which mrt
/usr/local/bin/mrt
Not sure if this is relevant but I have two drives in my Mac one that has the user folder and the other that has system files.
Any help? I'm a unix newb so please be very clear on solutions. Thanks
Found the Error, make sure the Volume name has no SPACES. Mine had a few spaces and Meteorite git.js doesn't account for that. Just rename the Volume with no SPACES and it should work.
try running it as root:
$ sudo mrt
I always have to do this when using Meteorite to bundle on remote machines.
You might also need to create a symbolic link on mrt..
$ ln -s /usr/local/bin/mrt /usr/bin/mrt
It might be solved already, but I had the same error.
It turned out that Apple wanted me to agree on Terms, which I found out after running:
git --version
I had to run this as a administrator
sudo git --version
And agree upon the long list of Apple Terms. Afterwards my meteorite (and GIT for that matter) was running like a charm again.
I uninstalled the heroku gem and installed the Heroku Toolbelt and am running into issues getting it working w/ RVM.
heroku version command works everywhere except my current project folder.
In my project folder I get
'/Users/cmalpeli/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:223:in 'block in replace_bin_path': can't find executable heroku (Gem::Exception)
from ./bundler_stubs/heroku:16:in`
Running which heroku in my project directory returns:
./bundler_stubs/heroku
everywhere else it returns
/usr/bin/heroku
I'm sure it has something to do w/ RVM - but I don't quite understand how that works, so would appreciate a bit of help.
Thanks!
make sure heroku is not part of your Gemfile - it should not be there.
then remove ./bundler_stubs/heroku:
rm -f ./bundler_stubs/heroku
it is possible that ./bundler_stubs/heroku is part of your project and was committed by one of your coworkers, the stubs should not be part of the project.
I'm having trouble installing RVM on a new Debian 6 VirtualBox VM. I've installed all the needed packages and downloaded the install script fine using
(curl -s https://rvm.beginrescueend.com/install/rvm) > rvm
, but when running it as a single user
bash rvm
I get the following error message:
ERROR: Unable to checkout branch .
Installation stops here, and (as far as I can tell) none of RVM's files are installed.
If I run the script as root (for a multi-user install), I get the other message:
Successfully checked out branch ''
The installer continues and indiciates success, but .rvm directories are not added and even after modifying my .bash_profile(s), I get 'rvm: command not found'.
I'm really stumped here. I don't have a ton of experience in either bash or with git, so I'm not sure if the fact that 'branch' is blank is the problem, or how to continue debugging. I'm here to learn, so please don't hesitate to ask questions so we can figure this out.
Thanks.
I had a /etc/rvmrc lying around that was confusing it. The rvm-installer was trying to install into /usr/local and failing. Deleting it fixed it.
Had the same problem.
Checked for /etc/rvmrc - but did not exist.
Did a ls -al, and found .rvm in my home directory.
Ran rm -rf .rvm
For the syntax error when install rvm on windows.
1. curl -s https://rvm.beginrescueend.com/install/rvm
2. sh rvm
and that did it!
You can try this. (it worked for me)
Set the rvm_path to be user-facing:
appuser$ echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc
Now install RVM,
appuser$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer
source :
http://beginrescueend.com/deployment/best-practices/