Trouble installing Calabash-iOS: Command not found

1,414 views
Skip to first unread message

Esben Rasmussen

unread,
Apr 23, 2012, 1:20:44 AM4/23/12
to calaba...@googlegroups.com
I'm trying to setup Calabash-iOS on a simple iPhone/iPad app.
I can successfullt run the
gem install calabash-cucumber
However when it comes to the
calabash-ios setup
An error occurs with:
-bash: calabash-ios: command not found

I have a suspicion that this is caused by spaces in the project directory, but I found a post here saying that this issue was fixed in 0.9.46 - I'm running 0.9.49 currently.
Or: That the Calabash-cucumber haven't been installed correctly.

Have any of you guys seen this before? Ideas on what I am doing wrong?

/Esben

Krukow

unread,
Apr 23, 2012, 1:56:58 AM4/23/12
to calaba...@googlegroups.com
Hi Esben,

When installing the gem the first time your bash session may need to be restarted. 

Could you simply try and start a new Terminal instance and run calabash-ios

it should print help, and then you're ok.

If that doesn't work, please run

gem list calabash-cucumber 

and tell me the output.

/Karl

Esben Rasmussen

unread,
Apr 23, 2012, 2:43:12 AM4/23/12
to calaba...@googlegroups.com
Hi Karl

Restarted the Terminal - no luck. Even restarted the machine.
Running gems list it seems like calabash-cucumber is installed.
Thinking about trying the manual install but i doubt that will solve the problem anyway since it seems like the framework hasent been installed correctly.
Hope you can help.

Last login: Mon Apr 23 08:37:03 on console
administrators-MacBook-Pro:~ erasmussen$ gem list calabash-cucumber

*** LOCAL GEMS ***

calabash-cucumber (0.9.49)
administrators-MacBook-Pro:~ erasmussen$ calabash-ios

-bash: calabash-ios: command not found
administrators-MacBook-Pro:~ erasmussen$


2012/4/23 Krukow <karl....@gmail.com>

Krukow

unread,
Apr 23, 2012, 2:57:44 AM4/23/12
to calaba...@googlegroups.com
Ok, this is wierd. Haven't seen this issue before. It looks more like a ruby/gem issue than calabash.

You should actually be able to get quite far using manual setup while we resolve this. I think calabash is installed fine, but your path hasn't been set to include calabash-ios (ruby gem should do this automatically, but it isn't for some reason).

You could try a reinstall:

* sudo gem uninstall calabash-cucumber

* sudo gem install calabash-cucumber

Then, could you try a couple of things and tell me what it prints:

ruby -v

which ruby

gem -v

which gem

hash calabash-ios

which calabash-ios

Esben Rasmussen

unread,
Apr 23, 2012, 3:13:59 AM4/23/12
to calaba...@googlegroups.com
Interesting...
Tries the following:

administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ sudo gem install calabash-cucumber
Successfully installed calabash-cucumber-0.9.49
1 gem installed
Installing ri documentation for calabash-cucumber-0.9.49...
Installing RDoc documentation for calabash-cucumber-0.9.49...
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin10.0]
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ gem -v
1.3.5
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ hash calabash-ios
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$

And now it works like a charm :-)

I would assume that It was caused because is initially installed calabash-cucumber without the sudo (not admin rights).
Since all the versioning is tha same as i had before.
So installing with admin rights solved the problem. (Note: I didn't get the permissions warning, so something else got blocked by me not being an administrator. Maybe you should update the tutorial to always use sudo.)

Thanks a lot for the support.


2012/4/23 Krukow <karl....@gmail.com>

Karl Krukow

unread,
Apr 23, 2012, 3:19:12 AM4/23/12
to calaba...@googlegroups.com
Thanks for the info. I'll update the README

/Karl

Bruno Scheele

unread,
Apr 23, 2012, 4:47:17 AM4/23/12
to calaba...@googlegroups.com
Why is the 'sudo' necessary, btw? I'm not really up to speed with Ruby and Gem and how they work, but my limited experience is that most gems should be able to be installed as a user instead of as an administrator.

Any particular reason for requiring admin privileges? Or was I just doing something wrong?

Bruno


On Monday, April 23, 2012 9:19:12 AM UTC+2, Krukow wrote:
Thanks for the info. I'll update the README

/Karl
On 23/04/2012, at 09.13, Esben Rasmussen wrote:

Interesting...
Tries the following:

administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ sudo gem install calabash-cucumber
Successfully installed calabash-cucumber-0.9.49
1 gem installed
Installing ri documentation for calabash-cucumber-0.9.49...
Installing RDoc documentation for calabash-cucumber-0.9.49...
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin10.0]
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ gem -v
1.3.5
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$ hash calabash-ios
administrators-MacBook-Pro:Garfield Daily Strips erasmussen$

And now it works like a charm :-)

I would assume that It was caused because is initially installed calabash-cucumber without the sudo (not admin rights).
Since all the versioning is tha same as i had before.
So installing with admin rights solved the problem. (Note: I didn't get the permissions warning, so something else got blocked by me not being an administrator. Maybe you should update the tutorial to always use sudo.)

Thanks a lot for the support.


2012/4/23 Krukow
Ok, this is wierd. Haven't seen this issue before. It looks more like a ruby/gem issue than calabash.

Krukow

unread,
Apr 24, 2012, 2:16:59 AM4/24/12
to calaba...@googlegroups.com
The default installation of Ruby on MacOS unfortunately needs sudo.

If you use rbenv (as do I) you don't need sudo and you install a later ruby version:

Reply all
Reply to author
Forward
0 new messages