compass-twitter-bootstrap icon indicating copy to clipboard operation
compass-twitter-bootstrap copied to clipboard

Can't install compass-twitter-bootstrap

Open juliorosadesigner opened this issue 12 years ago • 8 comments

Hello, I'm just really frustrated about that, I'm newbie on ruby/rails and I can't understand how to proceed to install it.

First of all, I'm on a Mac running LION, my 'Ruby 1.8.7' and 'Rails 3.2.9' and I had Xcode 4.5.2 already installed with the 'Command Line Tools'. So I've opened the TERMINAL and I followed this steps:

1- gem install compass_twitter_bootstrap; OK 2- gem 'compass_twitter_bootstrap', It returns: ERROR: While executing gem ... (RuntimeError) Unknown command compass_twitter_bootstrap

How I proceed to solve that problem?

I'm also using codekit.

juliorosadesigner avatar Jan 02 '13 01:01 juliorosadesigner

If you decide to using it with Rails, you should follow Usage with asset Pipeline's guide or Usage with Rails.

If you just using it only for sass/compass, you only need command gem install compass_twitter_bootstrap

CMIIW

novrian avatar Jan 02 '13 13:01 novrian

Ok, I already installed(only for sass/compass), but I tried import compass_twitter_bootstrap

"Compass was unable to compile one or more files in the project:

NoMethodError on line 264 of /Applications/CodeKit.app/Contents/Resources/engines/compass/bin/../lib/compass/configuration/inheritance.rb: config Run with --trace to see the full backtrace"

juliorosadesigner avatar Jan 02 '13 13:01 juliorosadesigner

I'm not a Mac User, but you have not installed SASS & Compass yet, I guess.

Did you install it already?

novrian avatar Jan 03 '13 06:01 novrian

Novrian, I have Sass & Compass working fine here, also I've used sass and bootstrap in my older projects. I really appreciate your attention.

juliorosadesigner avatar Jan 03 '13 09:01 juliorosadesigner

I have no idea Julio, I've not use Mac before :)

cc: @vwall

novrian avatar Jan 03 '13 14:01 novrian

The problem is you are trying to run the Gemfile entry (your step 2) as a CL command.

What you should do is install the Bundler gem (gem install bundler), then after you create a new Rails project there should be a file called Gemfile under the project root. Add "gem "compass_twitter_bootstrap" ' to that file (plus any other gems you wish to use in that project) and run the command 'bundle' from the command line.

Here is more info on Bundler: http://gembundler.com/

EDIT: this process is explaned in detail in the documentation:

https://github.com/vwall/compass-twitter-bootstrap#usage-with-asset-pipelinerails-32

EDIT 2: good resource to learn about Bundler and using the Gemfile (little dated, but basics the same):

http://railscasts.com/episodes/201-bundler

tagCincy avatar Jan 03 '13 14:01 tagCincy

Novrian thx.

tagCincy I will try it. THX.

juliorosadesigner avatar Jan 03 '13 14:01 juliorosadesigner

@juliorosadesigner, I am having same issue as with you. if you're able to resolve it than looking forward for your solution to this.

sukhjindersingh avatar Dec 27 '13 13:12 sukhjindersingh