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

Calling knife returns 'Could not locate Gemfile' message #79

Closed
jperry opened this issue Jun 24, 2014 · 1 comment
Closed

Calling knife returns 'Could not locate Gemfile' message #79

jperry opened this issue Jun 24, 2014 · 1 comment

Comments

@jperry
Copy link

jperry commented Jun 24, 2014

[21:11:56] ~ > chef -v
Chef Development Kit Version: 0.1.0
[21:12:04] ~ > knife -v
Could not locate Gemfile
[21:12:09] ~ > which knife
/usr/bin/knife
[21:12:11] ~ > ls -al /usr/bin/knife
lrwxr-xr-x  1 root  wheel  21 Jun 23 21:09 /usr/bin/knife@ -> /opt/chefdk/bin/knife
[21:12:14] ~ > echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/packer

Any ideas why this may be happening? I included some command calls to show the path is set correctly. I am on a mac. Let me know if you want me to provide more information.

Thanks,
Jay

@jperry
Copy link
Author

jperry commented Jun 30, 2014

This was due to having this in my .bash_profile
alias knife='bundle exec knife'

@jperry jperry closed this as completed Jun 30, 2014
ksubrama pushed a commit that referenced this issue Jan 11, 2016
Add FreeBSD to Omnitruck JSON
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants