Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Warning: podenv already installed, it's just not linked #2

Open
MattMorgis opened this issue Nov 8, 2016 · 2 comments
Open

Warning: podenv already installed, it's just not linked #2

MattMorgis opened this issue Nov 8, 2016 · 2 comments

Comments

@MattMorgis
Copy link

Great tool! In light of this news, my team is finding podenv to be a great way to manage multiple versions of CocoaPods.

After installing podenv for the first time with homebrew, I tried to run podenv version and received the following message:

Warning: podenv already installed, it's just not linked

I overcame this by running

brew link --overwrite podenv

Going to submit an incoming PR to update the docs incase this happens to anyone else.

@SteveCaine
Copy link

SteveCaine commented May 12, 2017

I had the same issue and used Matt's suggestion above. Then I installed two pod versions (0.39.0 and the current 1.2.1) plus reinstalled the existing version (1.0.1). The new versions work, but commands sent to the existing version get 'No such file or directory' error.

I examined the ~/.podenv/versions/ directory and found all three versions are there, but the 'bin' folder is indeed missing from ~/.podenv/versions/1.0.1/. (The other two have it as expected.)

I removed 1.0.1 with 'podenv uninstall', verified the directory was removed, and then reinstalled that version, but again the 'bin' subdirectory is missing.

ISSUE RESOLVED: I started over with a fresh clone of my startup drive and deleted the installed pod version ('sudo gem uninstall cocoapods' followed by 'sudo rm -fr ~/.cocoapods/repos/master'), then did a fresh install of podenv followed by installing the 3 pod versions I needed. Everything is working now.

@ykhandelwal913
Copy link

@SteveCaine i am facing the similar issue of bin subdirectory missing and while doing pod --version its failing with error /usr/local/Cellar/podenv/1.0.0/bin/../libexec/podenv-exec: line 31: /Users/XXXX/.podenv/versions/1.0.0/bin/pod: No such file or directory

I tried the below as well:
sudo gem uninstall cocoapods
sudo rm -fr ~/.cocoapods/repos/master
podenv install 1.4.0
pod --version shows 1.4.0
podenv install 1.0.0
pod --version shows above error.. i want to have multiple version..how can i solve it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants