Capistrano says, "sh: bundle: not found"

By: Johnathon Wright on: May 12, 2011

Typically, you define your path in /etc/environment. Here's a simple example:


PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ruby/bin"

That last bit tells the system where Ruby lives. If Ruby isn't in the path, you won't be able to run it or any gem scripts, like bundle.

Unfortunately, neither /etc/environment nor /etc/profile is respected under certain situations, like the way Capistrano works by default.

The solution for me was to edit /etc/bash.bashrc, adding this as the first line:


source /etc/environment

Note: Adding it as the first line allows / encourages it to be overwritten as needed. If you're still having problems, here's one way to get started with troubleshooting:

edit /etc/bash.bashrc to include this

export USES_BASHRC='bashrc'

edit /etc/profile to include this line:

export USES_PROFILE = 'profile'

then see whether either of those environmental variables is around when capistrano connects. From your dev machine, run "cap shell" and you will end up with a "cap>" prompt. type "echo $USESBASHRC && echo $USESPROFILE. Here's what I got:


cap> echo $USESBASHRC && echo $USESPROFILE [establishing connection(s) to www.verdacom.com] Password: ** [out :: www.verdacom.com] bashrc

** [out :: www.verdacom.com]

Thanks to the SliceHost support team for pointing me in the right direction on this one.

REFERENCES

http://stefaanlippens.net/bashrcandothers





Comments:

jordan 12 said: My husband and i were delighted when Edward could finish up his analysis through the ideas he acquired in your blog. It is now and again perplexing to just always be giving for free guides which most people might have been selling. Therefore we keep in mind we now have the writer to give thanks to for that. These illustrations you've made, the easy web site navigation, the friendships your site help to engender - it's many astounding, and it is facilitating our son and us consider that that subject is fun, and that is tremendously mandatory. Thank you for everything! jordan 12 [url=http://www.jordan12.us.com]jordan 12[/url]

jordan 4 said: I precisely had to say thanks once more. I am not sure the things I would've followed in the absence of the entire information provided by you about that subject matter. It truly was an absolute frightful circumstance in my circumstances, however , seeing this well-written tactic you processed the issue forced me to weep over delight. I'm grateful for your service and have high hopes you are aware of a powerful job that you're putting in instructing most people through your web site. More than likely you have never got to know any of us. jordan 4

lebron shoes said: I enjoy you because of your whole hard work on this web site. My aunt really likes engaging in research and it is easy to see why. Most people know all of the dynamic way you present invaluable secrets through your web site and attract response from some other people on this concept plus our girl is now learning a lot of things. Enjoy the rest of the new year. You are carrying out a remarkable job. lebron shoes

kyrie 3 shoes said: I am also commenting to let you know of the terrific discovery my cousin's princess went through reading your web page. She realized plenty of pieces, including what it is like to have an incredible teaching mindset to let other folks easily comprehend a number of advanced matters. You undoubtedly did more than my expectations. Thanks for distributing the interesting, safe, revealing not to mention unique tips on the topic to Tanya. kyrie 3 shoes

curry 5 shoes said: I needed to compose you this little bit of remark in order to give thanks again considering the magnificent ideas you have contributed here. It was so shockingly generous of you to make easily all most people might have made available as an electronic book to help with making some profit for themselves, certainly considering the fact that you could possibly have tried it in case you considered necessary. These thoughts in addition served like a great way to comprehend some people have a similar desire like my very own to know the truth significantly more pertaining to this condition. I believe there are millions of more pleasant instances in the future for individuals that look over your blog post. curry 5 shoes

yeezy boost said: I'm commenting to make you be aware of what a cool experience my wife's child undergone reading through your web site. She learned such a lot of issues, including how it is like to possess a very effective helping style to have the rest without hassle know precisely selected complex subject areas. You actually surpassed my expected results. I appreciate you for delivering these warm and friendly, healthy, educational and even easy guidance on the topic to Tanya. yeezy boost

hermes said: I want to convey my admiration for your generosity supporting folks that need help with in this issue. Your special dedication to getting the solution along has been extraordinarily useful and have surely encouraged ladies like me to attain their ambitions. Your new important help and advice signifies a whole lot a person like me and especially to my office colleagues. Thank you; from each one of us. hermes

a bathing ape said: Thank you a lot for providing individuals with an extremely spectacular opportunity to check tips from this website. It's always so pleasing and stuffed with amusement for me personally and my office co-workers to visit your website at the very least 3 times weekly to find out the newest tips you will have. Of course, I'm just at all times motivated with all the impressive opinions you give. Certain 1 areas in this posting are truly the best we have all had. a bathing ape

supreme said: I am commenting to make you know of the excellent encounter my friend's daughter encountered using your blog. She even learned many things, which include what it is like to possess a great teaching mood to make other folks with no trouble fully understand chosen specialized subject areas. You actually did more than my desires. Thanks for displaying such informative, healthy, informative and even fun tips about your topic to Jane. supreme

adidas yeezy said: Would you be excited about exchanging hyperlinks? adidas yeezy

off white shoes said: you've got an ideal weblog here! would you like to make some invite posts on my weblog? off white shoes

paul george shoes said: I discovered your blog web site on google and test a couple of of your early posts. Continue to keep up the very good operate. I simply extra up your RSS feed to my MSN Information Reader. In search of forward to reading more from you later on!? paul george shoes

golden goose said: very nice post, i definitely love this web site, carry on it golden goose

yeezy supply said: Aw, this was a very nice post. In thought I wish to put in writing like this additionally ?taking time and precise effort to make an excellent article?but what can I say?I procrastinate alot and not at all seem to get something done. yeezy supply

lebron shoes said: It's best to participate in a contest for one of the best blogs on the web. I will recommend this site! lebron shoes

lebron 15 said: I was more than happy to search out this net-site.I wanted to thanks to your time for this wonderful read!! I undoubtedly having fun with each little bit of it and I've you bookmarked to check out new stuff you weblog post. lebron 15

golden goose sneakers said: Once I originally commented I clicked the -Notify me when new comments are added- checkbox and now every time a remark is added I get 4 emails with the same comment. Is there any approach you'll be able to remove me from that service? Thanks! golden goose sneakers

michael jordan shoes said: There may be noticeably a bundle to know about this. I assume you made sure good factors in options also. michael jordan shoes

lebron 16 said: I am usually to blogging and i actually appreciate your content. The article has really peaks my interest. I am going to bookmark your website and maintain checking for brand new information. lebron 16

yeezy shoes said: I used to be very pleased to find this web-site.I wanted to thanks in your time for this excellent learn!! I positively enjoying every little little bit of it and I've you bookmarked to check out new stuff you weblog post. yeezy shoes

giannis shoes said: After I originally commented I clicked the -Notify me when new comments are added- checkbox and now every time a remark is added I get four emails with the same comment. Is there any way you'll be able to remove me from that service? Thanks! giannis shoes

longchamp said: I wanted to jot down a simple remark to thank you for those magnificent solutions you are placing at this website. My incredibly long internet research has at the end been rewarded with really good facts and strategies to write about with my company. I 'd declare that many of us visitors are unquestionably blessed to dwell in a perfect network with very many wonderful professionals with valuable basics. I feel very lucky to have seen your website page and look forward to many more excellent moments reading here. Thanks a lot again for everything. longchamp

air jordan said: I and also my buddies were actually checking the best tricks located on the blog and then before long I got an awful feeling I never expressed respect to the web blog owner for those techniques. The young men ended up certainly glad to read through all of them and have in effect extremely been taking pleasure in these things. Appreciate your turning out to be so kind and for obtaining this kind of important ideas most people are really desperate to understand about. My personal honest regret for not expressing gratitude to earlier. air jordan

pandora said: Thank you for all of the efforts on this blog. My daughter really loves making time for investigations and it is obvious why. My partner and i hear all about the lively way you present both useful and interesting suggestions on your website and invigorate response from visitors on this issue then our own daughter is in fact becoming educated so much. Have fun with the remaining portion of the year. You are conducting a wonderful job. pandora

kd13 said: My wife and i were happy when Raymond managed to complete his basic research by way of the precious recommendations he received out of your web pages. It is now and again perplexing to just be giving out guides which usually other people have been trying to sell. So we consider we now have you to thank for that. The type of illustrations you made, the straightforward web site menu, the friendships you will make it possible to engender - it is many great, and it is letting our son in addition to us understand that article is exciting, which is extraordinarily indispensable. Many thanks for all! kd13

goyard handbags said: I want to voice my affection for your kind-heartedness for people that should have help on your study. Your very own dedication to passing the solution all through became exceptionally significant and has usually enabled men and women just like me to reach their aims. Your personal warm and friendly tips and hints means a whole lot to me and a whole lot more to my office colleagues. Many thanks; from each one of us. goyard handbags

moncler said: I want to express my admiration for your kind-heartedness in support of those people who really need guidance on this important area. Your special commitment to passing the solution all over appeared to be definitely interesting and has specifically allowed associates much like me to attain their pursuits. Your personal helpful suggestions can mean this much to me and especially to my mates. Thank you; from all of us. moncler

stone island said: Thanks a lot for providing individuals with an extraordinarily splendid chance to read in detail from this site. It's always so fantastic and as well , stuffed with amusement for me personally and my office acquaintances to search your web site particularly three times in 7 days to read through the fresh items you have. And indeed, I'm also at all times amazed considering the unbelievable hints you give. Some 3 tips on this page are definitely the most efficient I've ever had. stone island

retro jordans said: I definitely wanted to jot down a brief note so as to say thanks to you for these splendid instructions you are writing at this website. My prolonged internet lookup has finally been compensated with professional information to write about with my great friends. I would mention that most of us site visitors actually are truly blessed to be in a superb website with so many lovely people with very beneficial strategies. I feel really fortunate to have encountered your entire webpage and look forward to many more amazing moments reading here. Thanks a lot once again for a lot of things. retro jordans

kyrie irving shoes said: I just wanted to post a quick word to be able to thank you for those remarkable instructions you are writing on this website. My time-consuming internet look up has at the end been paid with professional points to share with my friends. I 'd state that that we visitors are extremely lucky to be in a fantastic network with so many wonderful professionals with very helpful hints. I feel truly blessed to have discovered the website and look forward to tons of more cool minutes reading here. Thanks a lot once more for everything. kyrie irving shoes

longchamp said: I would like to express my appreciation to you just for bailing me out of this type of dilemma. Just after surfing around through the world-wide-web and meeting solutions that were not powerful, I was thinking my entire life was gone. Existing minus the solutions to the difficulties you have fixed all through the post is a serious case, and those which could have adversely affected my career if I hadn't discovered your web site. Your actual understanding and kindness in taking care of all the details was helpful. I'm not sure what I would've done if I had not encountered such a subject like this. It's possible to at this point look forward to my future. Thanks so much for your skilled and result oriented guide. I will not hesitate to suggest your blog to anyone who should receive direction on this area. longchamp

supreme shirt said: I intended to write you that little word so as to give thanks once again for your personal amazing advice you have featured on this site. It was wonderfully open-handed with you giving without restraint all most people might have advertised as an ebook to earn some profit on their own, precisely seeing that you might well have tried it if you ever wanted. Those suggestions additionally served to be the good way to be aware that some people have the identical desire just like my personal own to grasp somewhat more around this issue. I believe there are some more fun periods in the future for individuals who look into your site. supreme shirt

curry 6 shoes said: I wanted to create you one very little remark to be able to give many thanks over again just for the fantastic thoughts you have featured here. It has been really strangely open-handed of you giving unreservedly what exactly some people would've offered for sale as an ebook to help with making some dough for themselves, mostly now that you might well have done it if you ever considered necessary. Those good tips likewise worked to be a good way to fully grasp other people have similar passion really like my personal own to know the truth many more on the subject of this condition. I think there are thousands of more pleasant moments up front for folks who looked at your blog post. curry 6 shoes

yeezy 350 said: My husband and i have been very thrilled when Michael could finish up his preliminary research from the ideas he grabbed through the web page. It is now and again perplexing to just possibly be handing out tips which usually many others might have been making money from. And we also remember we need the blog owner to thank for that. The illustrations you have made, the easy blog menu, the friendships you give support to foster - it's many fantastic, and it's facilitating our son in addition to our family do think that matter is interesting, which is pretty serious. Thanks for all the pieces! yeezy 350

jordan shoes said: Thank you a lot for providing individuals with an extremely splendid opportunity to read in detail from this blog. It really is very brilliant plus stuffed with fun for me personally and my office friends to visit your web site at the very least 3 times in one week to study the new items you have got. And definitely, we're always astounded considering the mind-blowing principles you give. Certain 2 tips on this page are certainly the most impressive I have ever had. jordan shoes

supreme said: I enjoy you because of all your efforts on this web page. Ellie take interest in setting aside time for investigation and it's really easy to understand why. I hear all relating to the dynamic way you provide invaluable guides through this web blog and even invigorate contribution from website visitors on the area plus my simple princess is really becoming educated a lot. Take pleasure in the rest of the year. You're conducting a really good job. supreme

curry 7 shoes said: I together with my guys have been checking out the excellent pointers located on your website then before long came up with a horrible suspicion I never expressed respect to the website owner for those secrets. The men had been excited to see them and now have undoubtedly been tapping into them. Thanks for truly being very helpful and for having this kind of fabulous subject matter millions of individuals are really needing to be informed on. Our honest apologies for not expressing appreciation to you earlier. curry 7 shoes

supreme new york said: Thanks for all your efforts on this blog. My niece really loves working on internet research and it is easy to see why. A number of us learn all relating to the compelling form you deliver helpful guidelines via the web blog and increase contribution from some others on the issue so our girl is really learning a great deal. Have fun with the rest of the year. You are doing a brilliant job. supreme new york

longchamp bags said: I truly wanted to send a brief comment in order to express gratitude to you for those stunning techniques you are writing on this website. My particularly long internet investigation has at the end been compensated with reliable facts and strategies to go over with my visitors. I would claim that most of us visitors actually are very much lucky to be in a remarkable website with so many special professionals with helpful ideas. I feel very much fortunate to have used your entire web page and look forward to really more excellent moments reading here. Thanks once more for all the details. longchamp bags

longchamp bags said: I am also writing to make you be aware of of the really good discovery our princess found checking your blog. She even learned too many issues, not to mention what it is like to possess an incredible coaching nature to let other folks with ease understand chosen impossible topics. You truly exceeded our desires. Many thanks for coming up with those essential, safe, revealing as well as cool tips on this topic to Janet. longchamp bags

yeezy said: I simply desired to appreciate you all over again. I'm not certain what I could possibly have tried without the entire basics documented by you about such topic. It had become a real frustrating circumstance in my position, nevertheless taking a look at the specialised form you resolved the issue forced me to cry over contentment. Extremely happier for your assistance and even pray you comprehend what an amazing job you are always putting in teaching most people with the aid of your website. I am certain you haven't come across all of us. yeezy

golden goose said: I must voice my passion for your kind-heartedness giving support to those people who should have assistance with in this matter. Your special dedication to passing the message all-around has been wonderfully valuable and have without exception made many people just like me to realize their objectives. This insightful publication means a whole lot to me and especially to my mates. Thank you; from each one of us. golden goose

hermes handbags said: I am writing to let you know what a awesome encounter my friend's princess found reading through your site. She mastered a wide variety of details, most notably what it is like to have a marvelous giving style to let folks without hassle have an understanding of some tortuous subject areas. You undoubtedly did more than our expectations. I appreciate you for offering the precious, safe, informative and fun thoughts on that topic to Lizeth. hermes handbags

kyrie 6 shoes said: I am writing to let you understand of the excellent encounter our girl found using your blog. She figured out some details, with the inclusion of what it's like to have a great teaching mindset to get many others effortlessly comprehend specific complex matters. You truly exceeded people's desires. I appreciate you for imparting such invaluable, trustworthy, informative as well as unique tips about that topic to Kate. kyrie 6 shoes
Back