맥 오에스를 엘 케피탄으로 업그레이드 후 프로그램 동작이 안되서 설치를 못하고 있다고 SOS.
Koala 라는 프로그램이 sass 와 compass 라는 루비 모듈을 이용하고 SCSS 형식의 파일을 CSS 로 컴파일 해주는 프로그램
모듈을 설치 하기 이전에 개발툴을 요구하기에 App Store 에서 Xcode 를 검색하여 인스톨.
인스톨이 끝나도 설치가 완료된 것은 아니다. Xcode 실행을 해서 설치를 완료한다.
터미널을 열어서 다음과 같이 명령어를 차례대로 실행을 한다.
sudo gem update –system
sudo gem install sass
sudo gem install compass
아래는 실행 결과
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
salpoosi-no-iMac:~ salpoosi$ sudo gem update --system Password: Updating rubygems-update Fetching: rubygems-update-2.6.6.gem (100%) Successfully installed rubygems-update-2.6.6 Parsing documentation for rubygems-update-2.6.6 Installing ri documentation for rubygems-update-2.6.6 Installing darkfish documentation for rubygems-update-2.6.6 Installing RubyGems 2.6.6 RubyGems 2.6.6 installed Parsing documentation for rubygems-2.6.6 Installing ri documentation for rubygems-2.6.6 === 2.6.6 / 2016-06-22 Bug fixes: * Sort installed versions to make sure we install the latest version when running `gem update --system`. As a one-time fix, run `gem update --system=2.6.6`. Pull request #1601 by David Radcliffe. === 2.6.5 / 2016-06-21 Minor enhancements: * Support for unified Integer in Ruby 2.4. Pull request #1618 by SHIBATA Hiroshi. * Update vendored Molinillo to 0.5.0 for performance improvements. Pull request #1638 by Samuel Giddins. Bug fixes: * Raise an explicit error if Signer#sign is called with no certs. Pull request #1605 by Daniel Berger. * Update `update_bundled_ca_certificates` utility script for directory nesting. Pull request #1583 by James Wen. * Fix broken symlink support in tar writer (+ fix broken test). Pull request #1578 by Cezary Baginski. * Remove extension directory before (re-)installing. Pull request #1576 by Jeremy Hinegardner. * Regenerate test CA certificates with appropriate extensions. Pull request #1611 by rhenium. * Rubygems does not terminate on failed file lock when not superuser. Pull request #1582 by Ellen Marie Dash. * Fix tar headers with a 101 character name. Pull request #1612 by Paweł Tomulik. * Add Gem.platform_defaults to allow implementations to override defaults. Pull request #1644 by Charles Oliver Nutter. * Run Bundler tests on TravisCI. Pull request #1650 by Samuel Giddins. === 2.6.4 / 2016-04-26 Minor enhancements: * Use Gem::Util::NULL_DEVICE instead of hard coded strings. Pull request #1588 by Chris Charabaruk. * Use File.symlink on MS Windows if supported. Pull request #1418 by Nobuyoshi Nakada. Bug fixes: * Redact uri password from error output when gem fetch fails. Pull request #1565 by Brian Fletcher. * Suppress warnings. Pull request #1594 by Nobuyoshi Nakada. * Escape user-supplied content served on web pages by `gem server` to avoid potential XSS vulnerabilities. Samuel Giddins. === 2.6.3 / 2016-04-05 Minor enhancements: * Lazily calculate Gem::LoadError exception messages. Pull request #1550 by Aaron Patterson. * New fastly cert. Pull request #1548 by David Radcliffe. * Organize and cleanup SSL certs. Pull request #1555 by James Wen. * [RubyGems] Make deprecation message for paths= more helpful. Pull request #1562 by Samuel Giddins. * Show default gems when using "gem list". Pull request #1570 by Luis Sagastume. Bug fixes: * Stub ordering should be consistent regardless of how cache is populated. Pull request #1552 by Aaron Patterson. * Handle cases when the @@stubs variable contains non-stubs. Pull request #1558 by Per Lundberg. * Fix test on Windows for inconsistent temp path. Pull request #1554 by Hiroshi Shirosaki. * Fix `Gem.find_spec_for_exe` picks oldest gem. Pull request #1566 by Shinichi Maeshima. * [Owner] Fallback to email and userid when owner email is missing. Pull request #1569 by Samuel Giddins. * [Installer] Handle nil existing executable. Pull request #1561 by Samuel Giddins. * Allow two digit version numbers in the tests. Pull request #1575 by unak. === 2.6.2 / 2016-03-12 Bug fixes: * Fix wrong version of gem activation for bin stub. Pull request #1527 by Aaron Patterson. * Speed up gem activation failures. Pull request #1539 by Aaron Patterson. * Fix platform sorting in the resolver. Pull request #1542 by Samuel E. Giddins. * Ensure we unlock the monitor even if try_activate throws. Pull request #1538 by Charles Oliver Nutter. === 2.6.1 / 2016-02-28 Bug fixes: * Ensure `default_path` and `home` are set for paths. Pull request #1513 by Aaron Patterson. * Restore but deprecate support for Array values on `Gem.paths=`. Pull request #1514 by Aaron Patterson. * Fix invalid gem file preventing gem install from working. Pull request #1499 by Luis Sagastume. === 2.6.0 / 2016-02-26 Minor enhancements: * RubyGems now defaults the `gem push` to the gem's "allowed_push_host" metadata setting. Pull request #1486 by Josh Lane. * Update bundled Molinillo to 0.4.3. Pull request #1493 by Samuel E. Giddins. * Add version option to gem open command. Pull request #1483 by Hrvoje Šimić. * Feature/add silent flag. Pull request #1455 by Luis Sagastume. * Allow specifying gem requirements via env variables. Pull request #1472 by Samuel E. Giddins. Bug fixes: * RubyGems now stores `gem push` credentials under the host you signed-in for. Pull request #1485 by Josh Lane. * Move `coding` location to first line. Pull request #1471 by SHIBATA Hiroshi. * [PathSupport] Handle a regexp path separator. Pull request #1469 by Samuel E. Giddins. * Clean up the PathSupport object. Pull request #1094 by Aaron Patterson. * Join with File::PATH_SEPARATOR in Gem.use_paths. Pull request #1476 by Samuel E. Giddins. * Handle when the gem home and gem path arent set in the config file. Pull request #1478 by Samuel E. Giddins. * Terminate TimeoutHandler. Pull request #1479 by Nobuyoshi Nakada. * Remove redundant cache. Pull request #1482 by Eileen M. Uchitelle. * Freeze `Gem::Version@segments` instance variable. Pull request #1487 by Ben Dean. * Gem cleanup is trying to uninstall gems outside GEM_HOME and reporting an error after it tries. Pull request #1353 by Luis Sagastume. * Avoid duplicated sources. Pull request #1489 by Luis Sagastume. * Better description for quiet flag. Pull request #1491 by Luis Sagastume. * Raise error if find_by_name returns with nil. Pull request #1494 by Zoltán Hegedüs. * Find_files only from loaded_gems when using gemdeps. Pull request #1277 by Michal Papis. ------------------------------------------------------------------------------ RubyGems installed the following executables: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/gem Ruby Interactive (ri) documentation was installed. ri is kind of like man pages for ruby libraries. You may access it like this: ri Classname ri Classname.class_method ri Classname#instance_method If you do not wish to install this documentation in the future, use the --no-document flag, or set it as the default in your ~/.gemrc file. See 'gem help env' for details. RubyGems system software updated salpoosi-no-iMac:~ salpoosi$ sudo gem install -n /usr/local/bin sass Successfully installed sass-3.4.22 Parsing documentation for sass-3.4.22 Installing ri documentation for sass-3.4.22 1 gem installed salpoosi-no-iMac:~ salpoosi$ sudo gem install -n /usr/local/bin compass Fetching: multi_json-1.12.1.gem (100%) Successfully installed multi_json-1.12.1 Fetching: compass-core-1.0.3.gem (100%) Successfully installed compass-core-1.0.3 Fetching: compass-import-once-1.0.5.gem (100%) Successfully installed compass-import-once-1.0.5 Fetching: chunky_png-1.3.7.gem (100%) Successfully installed chunky_png-1.3.7 Fetching: rb-fsevent-0.9.7.gem (100%) Successfully installed rb-fsevent-0.9.7 Fetching: ffi-1.9.14.gem (100%) Building native extensions. This could take a while... Successfully installed ffi-1.9.14 Fetching: rb-inotify-0.9.7.gem (100%) Successfully installed rb-inotify-0.9.7 Fetching: compass-1.0.3.gem (100%) Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks! Successfully installed compass-1.0.3 Parsing documentation for multi_json-1.12.1 Installing ri documentation for multi_json-1.12.1 Parsing documentation for compass-core-1.0.3 Installing ri documentation for compass-core-1.0.3 Parsing documentation for compass-import-once-1.0.5 Installing ri documentation for compass-import-once-1.0.5 Parsing documentation for chunky_png-1.3.7 Installing ri documentation for chunky_png-1.3.7 Parsing documentation for rb-fsevent-0.9.7 Installing ri documentation for rb-fsevent-0.9.7 Parsing documentation for ffi-1.9.14 Installing ri documentation for ffi-1.9.14 Parsing documentation for rb-inotify-0.9.7 Installing ri documentation for rb-inotify-0.9.7 Parsing documentation for compass-1.0.3 Installing ri documentation for compass-1.0.3 8 gems installed salpoosi-no-iMac:~ salpoosi$ |
설치된 버전 확인
1 2 3 4 5 6 7 8 9 |
salpoosi-no-iMac:~ salpoosi$ sass -v Sass 3.4.22 (Selective Steve) salpoosi-no-iMac:~ salpoosi$ compass -v Compass 1.0.3 (Polaris) Copyright (c) 2008-2016 Chris Eppstein Released under the MIT License. Compass is charityware. Please make a tax deductable donation for a worthy cause: http://umdf.org/compass salpoosi-no-iMac:~ salpoosi$ |
설치가 완료되면 Koala 에서 환경 설정을 해 준다.
Sass 텝에서 Advanced Settings 에서 설치된 패스 /usr/local/bin/sass 를 입력을 해준다.
Compass 텝에서 Advanced Settings 에서 설치된 패스 /usr/local/bin/compass 를 입력을 해준다.
주의점 기존에 Sass 텝에서 Compass Mode를 선택하고 사용을 했던것 같은데 기본 설정인 줄 알고 계속 테스트를 하니, 다음과 같은 에러 로그를 내뿜는다.
1 |
Individual stylesheets must be in the sass directory. |
Compass Mode를 선택하면 기존에는 지정된 패스에 컴파일이 되어 생성이 되었던 것 같은데, 해제를 하니 CSS 폴더에 컴파일된 파일들이 생성이 된다.
생성된 파일을 확인하니 기존에 컴파일이 안되, 코드가 일부 생성되지 않았던 부분도 나온다고 한다.