My compass gem is installed . . . but it isn't

3,119 views
Skip to first unread message

WebSnake

unread,
Apr 14, 2012, 5:43:20 PM4/14/12
to Compass
I'm new to ruby and am not doing ruby web dev but want to use compass
I followed the instructions and everything seemed to go fine.
But I can't explain this:
the compass gem is listed as installed but when I try to create a new
project,
the command line command "compass" is not there:


dug@ubuntu:~$ gem query

*** LOCAL GEMS ***

chunky_png (1.2.5)
compass (0.12.1)
fssm (0.2.8.1)
sass (3.1.15)
dug@ubuntu:~$ compass create myproject
compass: command not found

I'm running Ubuntu Server 10.04
I really don't even know where to begin,
this seems like a contradiction but I'm sure there's some explanation
that I'm not expereinced enough to figure out


Chris Eppstein

unread,
Apr 14, 2012, 6:11:09 PM4/14/12
to compas...@googlegroups.com
Seems likely that compass was installed into a location that is not on your $PATH.

Try uninstalling all those gems and re-installing using sudo.

chris



--
You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.


WebSnake

unread,
Apr 21, 2012, 3:05:18 PM4/21/12
to compas...@googlegroups.com
I tried that but to no avail:

dug@ubuntu:~$ gem query

*** LOCAL GEMS ***


dug@ubuntu:~$ sudo gem install compass
Successfully installed sass-3.1.16
Successfully installed chunky_png-1.2.5
Successfully installed fssm-0.2.9
Successfully installed compass-0.12.1
4 gems installed
Installing ri documentation for sass-3.1.16...
Installing ri documentation for chunky_png-1.2.5...
Installing ri documentation for fssm-0.2.9...
Installing ri documentation for compass-0.12.1...
Updating class cache with 0 classes...
Installing RDoc documentation for sass-3.1.16...
Installing RDoc documentation for chunky_png-1.2.5...
Installing RDoc documentation for fssm-0.2.9...
Installing RDoc documentation for compass-0.12.1...

but when I try to use compass I get:

dug@ubuntu:/$ compass version
compass: command not found
dug@ubuntu:/$ compass create newproject
compass: command not found

One hint that may make things confusing is that apparently I had more than one version of compass installed
I removed all these versions, and installed one new one using sudo ( above )
but I think I have multiple versions of Ruby installed.
Ubuntu 10.04 comes with one and since it wasn't the latest, I installed a newer version on top of that
Does that sound like it could cause problems in the same way that multiple python installations causes consfusion
with installations?

I'll try to figure this out but could use some common sense Ruby knowledge and have none
Doug

Chris Eppstein

unread,
Apr 21, 2012, 4:19:44 PM4/21/12
to compas...@googlegroups.com
I've had a couple of users report this issue now. I'm concerned about it, but I cannot reproduce it.

What I'd like to do is be able to log into your machine and poke around. If you can arrange this, please send me an email directly and we'll set up a time.

Chris

--
You received this message because you are subscribed to the Google Groups "Compass" group.
To view this discussion on the web visit https://groups.google.com/d/msg/compass-users/-/aRZN6K0n_14J.

Chris Eppstein

unread,
Aug 6, 2012, 1:32:11 PM8/6/12
to compas...@googlegroups.com
This is usually because you forgot to add "sudo" to the front of the command, thus causing rubygems to install the executable into a location that is not on your PATH.

chris

On Sun, Aug 5, 2012 at 8:14 AM, amelia power <ameli...@gmail.com> wrote:

Hi Chris,
I'm having a similar issue getting "command not found" even though compass seems to install sucessfully, but unable to check version or create a project. Appreciate your help on this.
Chris

To unsubscribe from this group, send email to compass-users+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Compass" group.
To view this discussion on the web visit https://groups.google.com/d/msg/compass-users/-/RQrK3wB-v8QJ.

amelia power

unread,
Aug 6, 2012, 2:29:38 PM8/6/12
to compas...@googlegroups.com
Yes, I did sudo, and uninstalled and retried several times, all times using sudo. I was wondering where it was going and perhaps that was the issue, but if sudo takes care of that then it's something else. Don't know if this has anything to do with it, but I noticed when I was installing rubygems last week that Homebrew failed. Does that matter?
Thanks Chris for your response.
--
Amelia Power
Web Designer and Developer
www.ameliapowerdesign.com

Chris Eppstein

unread,
Aug 6, 2012, 3:00:36 PM8/6/12
to compas...@googlegroups.com
It might. If you're using sudo, then the problem seems deeper than I expected. Good luck.

chris
Reply all
Reply to author
Forward
0 new messages