InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

CSS

    CSS selectors

    • CSS selectors

    CSS properties

    • CSS properties

    CSS cookbooks

    • !important annotation
    • Align div in center horizontally
    • Align div in center vertically
    • Align multiple divs horizontally
    • Align text in center horizontally
    • CSS - drop cap effect
    • CSS - enlarge image on hover
    • CSS - round toggle switch using checkbox and label
    • CSS automatic table row numbering
    • CSS circle and oval
    • CSS clearfix - clear float automatically using ::after
    • CSS counters
    • CSS nested counters
    • CSS3 gradients
    • Create CSS triangles
    • First letter capital and bigger
    • How to display text on image using css
    • Install sass on Mac or Linux using ruby gem
    • Place a div in bottom right corner of browser
    • Test site css, javascript, html in old IEs
    • csslint
    • inherit value
    • initial value
    • inline-block and baseline alignment
    • margin collapsing
    • node-sass quick start tutorial on Linux and Mac
    • unset value
    • web typography
     
    • Home
    • > Tutorials
    • > CSS

    Install sass on Mac or Linux using ruby gem

    on Sep 24, 2016

    Sass can be installed on Mac or Linux using ruby gem. To install sass follow these steps.

    1. Install sass gem
      $ sudo gem install sass
      
    2. In case you get the following error
      ERROR:  While executing gem ... (Errno::EPERM)
          Operation not permitted - /usr/bin/sass
      

      Then try installing sass in /usr/local/bin

      $ sudo gem install -n /usr/local/bin sass
      
    3. List sass gem info
      $ gem list -d sass
      
      *** LOCAL GEMS ***
      
      sass (3.4.22)
          Authors: Natalie Weizenbaum, Chris Eppstein, Hampton Catlin
          Homepage: http://sass-lang.com/
          License: MIT
          Installed at: /Library/Ruby/Gems/2.0.0
      
          A powerful but elegant CSS compiler that makes CSS fun again.
      
    4. Check sass version
      $ sass -v
      Sass 3.4.22 (Selective Steve)
      
    5. Display contents in sass package
      $ gem contents -l sass
      

    Suggested posts:

    1. CSS flex-basis
    2. Python re search vs match
    3. How to install phantomjs on Mac
    4. How to install casperjs on Mac
    5. How to use CasperJS to automate website testing
    6. CSS – style for element having two classes (both)
    7. How to install node (node.js) on Mac
    8. Mac brew – how to find latest available package without installing
    Share this article: share on facebook share on linkedin tweet this submit to reddit
    Posted in Tutorials | Tagged CSS, CSS cookbook, Mac, Mac Command Line, Tutorials
    • Browse content
    • Article Topics
    • Article archives
    • Contact Us
    Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

    Copyright © 2025 InfoHeap.

    Powered by WordPress