レンタルサーバーのエックスサーバー上で、色々なPythonスクリプトを実行させるためには、各種のpythonモジュールをインストールする必要がある。しかし、SSHでサーバーに接続したとしても、Root権限はもらえないので、pip等でライブラリを追加することは出来ない。
代わりの方法として、サーバーのホームディレクトリ上に Linuxbrewをインストールすることにより、その上で自分の環境の中に、Pythonをインストールし、各モジュールを追加インストールすることで、目的が達成できるという記事を見つけた(これとか、これとか、これ)。
自分の環境で試して見たので記録しておく。
Linuxbrewのインストール
本家の指示に従い、下記コマンドを実施。
1 |
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" |
下記のように、私はサーバー上で sudoは実行出来ないというメッセージが出て、その場合は、”Enter”キーで、自分のホームディレクトリ上にインストールしてくれるらしいので、Enterを押す。
ズラーッとインストール作業が進み、時々文字化けしているのもあるが、最後まで行った。
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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 |
<p><br></p><p>$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" <font color="#ff0000"><strong>==> Select the Linuxbrew installation directory - Enter your password to install to /home/linuxbrew/.linuxbrew (recommended) - Press Control-D to install to /home/bcn/.linuxbrew - Press Control-C to cancel installation 残念ですが、ユーザー bcn は svxxxx 上で sudo を実行できません。</strong></font> ==> This script will install: /home/bcn/.linuxbrew/bin/brew /home/bcn/.linuxbrew/share/doc/homebrew /home/bcn/.linuxbrew/share/man/man1/brew.1 /home/bcn/.linuxbrew/share/zsh/site-functions/_brew /home/bcn/.linuxbrew/etc/bash_completion.d/brew /home/bcn/.cache/Homebrew/ /home/bcn/.linuxbrew/Homebrew ==> The following new directories will be created: /home/bcn/.linuxbrew/bin /home/bcn/.linuxbrew/etc /home/bcn/.linuxbrew/include /home/bcn/.linuxbrew/lib /home/bcn/.linuxbrew/sbin /home/bcn/.linuxbrew/share /home/bcn/.linuxbrew/var /home/bcn/.linuxbrew/opt /home/bcn/.linuxbrew/share/zsh /home/bcn/.linuxbrew/share/zsh/site-functions /home/bcn/.linuxbrew/Cellar /home/bcn/.linuxbrew/Caskroom /home/bcn/.linuxbrew/Homebrew /home/bcn/.linuxbrew/Frameworks Press RETURN to continue or any other key to abort ==> /bin/mkdir -p /home/bcn/.linuxbrew ==> /bin/chown bcn:members /home/bcn/.linuxbrew ==> /bin/mkdir -p /home/bcn/.linuxbrew/bin /home/bcn/.linuxbrew/etc /home/bcn/.linuxbrew/include /home/bcn/.linuxbrew/lib /home/bcn/.linuxbrew/sbin /home/bcn/.linuxbrew/share /home/bcn/.linuxbrew/var /home/bcn/.linuxbrew/opt /home/bcn/.linuxbrew/share/zsh /home/bcn/.linuxbrew/share/zsh/site-functions /home/bcn/.linuxbrew/Cellar /home/bcn/.linuxbrew/Caskroom /home/bcn/.linuxbrew/Homebrew /home/bcn/.linuxbrew/Frameworks ==> /bin/chmod g+rwx /home/bcn/.linuxbrew/bin /home/bcn/.linuxbrew/etc /home/bcn/.linuxbrew/include /home/bcn/.linuxbrew/lib /home/bcn/.linuxbrew/sbin /home/bcn/.linuxbrew/share /home/bcn/.linuxbrew/var /home/bcn/.linuxbrew/opt /home/bcn/.linuxbrew/share/zsh /home/bcn/.linuxbrew/share/zsh/site-functions /home/bcn/.linuxbrew/Cellar /home/bcn/.linuxbrew/Caskroom /home/bcn/.linuxbrew/Homebrew /home/bcn/.linuxbrew/Frameworks ==> /bin/chmod 755 /home/bcn/.linuxbrew/share/zsh /home/bcn/.linuxbrew/share/zsh/site-functions ==> /bin/chown bcn /home/bcn/.linuxbrew/bin /home/bcn/.linuxbrew/etc /home/bcn/.linuxbrew/include /home/bcn/.linuxbrew/lib /home/bcn/.linuxbrew/sbin /home/bcn/.linuxbrew/share /home/bcn/.linuxbrew/var /home/bcn/.linuxbrew/opt /home/bcn/.linuxbrew/share/zsh /home/bcn/.linuxbrew/share/zsh/site-functions /home/bcn/.linuxbrew/Cellar /home/bcn/.linuxbrew/Caskroom /home/bcn/.linuxbrew/Homebrew /home/bcn/.linuxbrew/Frameworks ==> /bin/chgrp members /home/bcn/.linuxbrew/bin /home/bcn/.linuxbrew/etc /home/bcn/.linuxbrew/include /home/bcn/.linuxbrew/lib /home/bcn/.linuxbrew/sbin /home/bcn/.linuxbrew/share /home/bcn/.linuxbrew/var /home/bcn/.linuxbrew/opt /home/bcn/.linuxbrew/share/zsh /home/bcn/.linuxbrew/share/zsh/site-functions /home/bcn/.linuxbrew/Cellar /home/bcn/.linuxbrew/Caskroom /home/bcn/.linuxbrew/Homebrew /home/bcn/.linuxbrew/Frameworks ==> /bin/mkdir -p /home/bcn/.cache/Homebrew ==> Downloading and installing Linuxbrew... remote: Enumerating objects: 1, done. remote: Counting objects: 100% (1/1), done. remote: Total 116952 (delta 0), reused 0 (delta 0), pack-reused 116951 Receiving objects: 100% (116952/116952), 27.58 MiB | 11.90 MiB/s, done. Resolving deltas: 100% (85395/85395), done. From https://github.com/Homebrew/brew * [new branch] master -> origin/master * [new tag] 0.1 -> 0.1 * [new tag] 0.2 -> 0.2 * [new tag] 0.3 -> 0.3 * [new tag] 0.4 -> 0.4 * [new tag] 0.5 -> 0.5 * [new tag] 0.6 -> 0.6 * [new tag] 0.7 -> 0.7 * [new tag] 0.7.1 -> 0.7.1 * [new tag] 0.8 -> 0.8 * [new tag] 0.8.1 -> 0.8.1 * [new tag] 0.9 -> 0.9 * [new tag] 0.9.1 -> 0.9.1 * [new tag] 0.9.2 -> 0.9.2 * [new tag] 0.9.3 -> 0.9.3 * [new tag] 0.9.4 -> 0.9.4 * [new tag] 0.9.5 -> 0.9.5 * [new tag] 0.9.8 -> 0.9.8 * [new tag] 0.9.9 -> 0.9.9 * [new tag] 1.0.0 -> 1.0.0 * [new tag] 1.0.1 -> 1.0.1 * [new tag] 1.0.2 -> 1.0.2 * [new tag] 1.0.3 -> 1.0.3 * [new tag] 1.0.4 -> 1.0.4 * [new tag] 1.0.5 -> 1.0.5 * [new tag] 1.0.6 -> 1.0.6 * [new tag] 1.0.7 -> 1.0.7 * [new tag] 1.0.8 -> 1.0.8 * [new tag] 1.0.9 -> 1.0.9 * [new tag] 1.1.0 -> 1.1.0 * [new tag] 1.1.1 -> 1.1.1 * [new tag] 1.1.10 -> 1.1.10 * [new tag] 1.1.11 -> 1.1.11 * [new tag] 1.1.12 -> 1.1.12 * [new tag] 1.1.13 -> 1.1.13 * [new tag] 1.1.2 -> 1.1.2 * [new tag] 1.1.3 -> 1.1.3 * [new tag] 1.1.4 -> 1.1.4 * [new tag] 1.1.5 -> 1.1.5 * [new tag] 1.1.6 -> 1.1.6 * [new tag] 1.1.7 -> 1.1.7 * [new tag] 1.1.8 -> 1.1.8 * [new tag] 1.1.9 -> 1.1.9 * [new tag] 1.2.0 -> 1.2.0 * [new tag] 1.2.1 -> 1.2.1 * [new tag] 1.2.2 -> 1.2.2 * [new tag] 1.2.3 -> 1.2.3 * [new tag] 1.2.4 -> 1.2.4 * [new tag] 1.2.5 -> 1.2.5 * [new tag] 1.2.6 -> 1.2.6 * [new tag] 1.3.0 -> 1.3.0 * [new tag] 1.3.1 -> 1.3.1 * [new tag] 1.3.2 -> 1.3.2 * [new tag] 1.3.3 -> 1.3.3 * [new tag] 1.3.4 -> 1.3.4 * [new tag] 1.3.5 -> 1.3.5 * [new tag] 1.3.6 -> 1.3.6 * [new tag] 1.3.7 -> 1.3.7 * [new tag] 1.3.8 -> 1.3.8 * [new tag] 1.3.9 -> 1.3.9 * [new tag] 1.4.0 -> 1.4.0 * [new tag] 1.4.1 -> 1.4.1 * [new tag] 1.4.2 -> 1.4.2 * [new tag] 1.4.3 -> 1.4.3 * [new tag] 1.5.0 -> 1.5.0 * [new tag] 1.5.1 -> 1.5.1 * [new tag] 1.5.10 -> 1.5.10 * [new tag] 1.5.11 -> 1.5.11 * [new tag] 1.5.12 -> 1.5.12 * [new tag] 1.5.13 -> 1.5.13 * [new tag] 1.5.14 -> 1.5.14 * [new tag] 1.5.2 -> 1.5.2 * [new tag] 1.5.3 -> 1.5.3 * [new tag] 1.5.4 -> 1.5.4 * [new tag] 1.5.5 -> 1.5.5 * [new tag] 1.5.6 -> 1.5.6 * [new tag] 1.5.7 -> 1.5.7 * [new tag] 1.5.8 -> 1.5.8 * [new tag] 1.5.9 -> 1.5.9 * [new tag] 1.6.0 -> 1.6.0 * [new tag] 1.6.1 -> 1.6.1 * [new tag] 1.6.10 -> 1.6.10 * [new tag] 1.6.11 -> 1.6.11 * [new tag] 1.6.12 -> 1.6.12 * [new tag] 1.6.13 -> 1.6.13 * [new tag] 1.6.14 -> 1.6.14 * [new tag] 1.6.15 -> 1.6.15 * [new tag] 1.6.16 -> 1.6.16 * [new tag] 1.6.17 -> 1.6.17 * [new tag] 1.6.2 -> 1.6.2 * [new tag] 1.6.3 -> 1.6.3 * [new tag] 1.6.4 -> 1.6.4 * [new tag] 1.6.5 -> 1.6.5 * [new tag] 1.6.6 -> 1.6.6 * [new tag] 1.6.7 -> 1.6.7 * [new tag] 1.6.8 -> 1.6.8 * [new tag] 1.6.9 -> 1.6.9 * [new tag] 1.7.0 -> 1.7.0 * [new tag] 1.7.1 -> 1.7.1 * [new tag] 1.7.2 -> 1.7.2 * [new tag] 1.7.3 -> 1.7.3 * [new tag] 1.7.4 -> 1.7.4 * [new tag] 1.7.5 -> 1.7.5 * [new tag] 1.7.6 -> 1.7.6 * [new tag] 1.7.7 -> 1.7.7 * [new tag] 1.8.0 -> 1.8.0 * [new tag] 1.8.1 -> 1.8.1 * [new tag] 1.8.2 -> 1.8.2 * [new tag] 1.8.3 -> 1.8.3 * [new tag] 1.8.4 -> 1.8.4 * [new tag] 1.8.5 -> 1.8.5 * [new tag] 1.8.6 -> 1.8.6 * [new tag] 1.9.0 -> 1.9.0 * [new tag] 1.9.1 -> 1.9.1 * [new tag] 1.9.2 -> 1.9.2 HEAD is now at 9141b15 Merge pull request #5541 from Homebrew/dependabot/bundler/docs/html-proofer-3.10.1 ==> Downloading https://linuxbrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.7.x86_64_linux.bottle.tar.gz ######################################################################## 100.0% ==> Pouring portable-ruby-2.3.7.x86_64_linux.bottle.tar.gz ==> Tapping homebrew/core Cloning into '/home/bcn/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'... remote: Enumerating objects: 4954, done. remote: Counting objects: 100% (4954/4954), done. remote: Compressing objects: 100% (4755/4755), done. remote: Total 4954 (delta 50), reused 326 (delta 6), pack-reused 0 Receiving objects: 100% (4954/4954), 4.21 MiB | 2.48 MiB/s, done. Resolving deltas: 100% (50/50), done. Tapped 3 commands and 4734 formulae (4,993 files, 13MB). ==> Installing dependencies for curl: patchelf, zlib, binutils, linux-headers, glibc, m4, gmp, mpfr, libmpc, isl@0.18, gcc, openssl and pkg-config ==> Installing curl dependency: patchelf ==> Downloading https://linuxbrew.bintray.com/bottles/patchelf-0.9_1.x86_64_linu ######################################################################## 100.0% ==> Pouring patchelf-0.9_1.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/patchelf/0.9_1: 6 files, 1.1MB ==> Installing curl dependency: zlib ==> Downloading https://linuxbrew.bintray.com/bottles/zlib-1.2.11.x86_64_linux.b ######################################################################## 100.0% ==> Pouring zlib-1.2.11.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/zlib/1.2.11: 12 files, 391.9KB ==> Installing curl dependency: binutils ==> Downloading https://linuxbrew.bintray.com/bottles/binutils-2.31.1_2.x86_64_l ######################################################################## 100.0% ==> Pouring binutils-2.31.1_2.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/binutils/2.31.1_2: 4,638 files, 293.7MB ==> Installing curl dependency: linux-headers ==> Downloading https://linuxbrew.bintray.com/bottles/linux-headers-4.4.80.x86_6 ######################################################################## 100.0% ==> Pouring linux-headers-4.4.80.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/linux-headers/4.4.80: 772 files, 3.6MB ==> Installing curl dependency: glibc ==> Downloading https://ftp.gnu.org/gnu/glibc/glibc-2.23.tar.gz ######################################################################## 100.0% ==> ../configure --disable-debug --disable-dependency-tracking --disable-silent- ==> make ==> make install ==> Installing locale data for en_US.UTF-8 ==> /home/bcn/.linuxbrew/Cellar/glibc/2.23/bin/localedef -i en_US -f UTF-8 en_US ? 痕home/bcn/.linuxbrew/Cellar/glibc/2.23: 1,367 files, 37.7MB, built in 2 minutes 3 seconds ==> Installing curl dependency: m4 ==> Downloading https://linuxbrew.bintray.com/bottles/m4-1.4.18.x86_64_linux.bot ######################################################################## 100.0% ==> Pouring m4-1.4.18.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/m4/1.4.18: 13 files, 1.1MB ==> Installing curl dependency: gmp ==> Downloading https://linuxbrew.bintray.com/bottles/gmp-6.1.2_2.x86_64_linux.b ######################################################################## 100.0% ==> Pouring gmp-6.1.2_2.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/gmp/6.1.2_2: 20 files, 3.8MB ==> Installing curl dependency: mpfr ==> Downloading https://linuxbrew.bintray.com/bottles/mpfr-4.0.1.x86_64_linux.bo ######################################################################## 100.0% ==> Pouring mpfr-4.0.1.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/mpfr/4.0.1: 29 files, 10.4MB ==> Installing curl dependency: libmpc ==> Downloading https://linuxbrew.bintray.com/bottles/libmpc-1.1.0.x86_64_linux. ######################################################################## 100.0% ==> Pouring libmpc-1.1.0.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/libmpc/1.1.0: 13 files, 1.5MB ==> Installing curl dependency: isl@0.18 ==> Downloading https://linuxbrew.bintray.com/bottles/isl@0.18-0.18.x86_64_linux ######################################################################## 100.0% ==> Pouring isl@0.18-0.18.x86_64_linux.bottle.tar.gz ==> Caveats isl@0.18 is keg-only, which means it was not symlinked into /home/bcn/.linuxbrew, because this is an alternate version of another formula. For compilers to find isl@0.18 you may need to set: export LDFLAGS="-L/home/bcn/.linuxbrew/opt/isl@0.18/lib" export CPPFLAGS="-I/home/bcn/.linuxbrew/opt/isl@0.18/include" For pkg-config to find isl@0.18 you may need to set: export PKG_CONFIG_PATH="/home/bcn/.linuxbrew/opt/isl@0.18/lib/pkgconfig" ==> Summary ? 痕home/bcn/.linuxbrew/Cellar/isl@0.18/0.18: 81 files, 6.3MB ==> Installing curl dependency: gcc ==> Downloading https://linuxbrew.bintray.com/bottles/gcc-5.5.0_4.x86_64_linux.b ######################################################################## 100.0% ==> Pouring gcc-5.5.0_4.x86_64_linux.bottle.2.tar.gz ==> Creating the GCC specs file: /home/bcn/.linuxbrew/Cellar/gcc/5.5.0_4/bin/../ ? 痕home/bcn/.linuxbrew/Cellar/gcc/5.5.0_4: 1,361 files, 169.5MB ==> Installing curl dependency: openssl ==> Downloading https://www.openssl.org/source/openssl-1.0.2q.tar.gz ######################################################################## 100.0% ==> perl ./Configure --prefix=/home/bcn/.linuxbrew/Cellar/openssl/1.0.2q_1 --ope ==> make depend MAKEDEPPROG=cc ==> make ==> make test ==> make install MANDIR=/home/bcn/.linuxbrew/Cellar/openssl/1.0.2q_1/share/man M ==> Downloading https://curl.haxx.se/ca/cacert-2017-01-18.pem ######################################################################## 100.0% ==> Caveats A CA file has been bootstrapped using certificates from the SystemRoots keychain. To add additional certificates (e.g. the certificates added in the System keychain), place .pem files in /home/bcn/.linuxbrew/etc/openssl/certs and run /home/bcn/.linuxbrew/opt/openssl/bin/c_rehash ==> Summary ? 痕home/bcn/.linuxbrew/Cellar/openssl/1.0.2q_1: 1,794 files, 14.3MB, built in 4 minutes ==> Installing curl dependency: pkg-config ==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar ######################################################################## 100.0% ==> ./configure --prefix=/home/bcn/.linuxbrew/Cellar/pkg-config/0.29.2_1 --disab ==> make ==> make check ==> make install ? 痕home/bcn/.linuxbrew/Cellar/pkg-config/0.29.2_1: 11 files, 699.2KB, built in 42 seconds ==> Installing curl Warning: Building curl from source: The bottle needs to be installed into /home/linuxbrew/.linuxbrew when built with OpenSSL. ==> Downloading https://curl.haxx.se/download/curl-7.63.0.tar.bz2 ######################################################################## 100.0% ==> ./configure --disable-silent-rules --prefix=/home/bcn/.linuxbrew/Cellar/curl ==> make install ==> make install -C scripts ? 痕home/bcn/.linuxbrew/Cellar/curl/7.63.0: 447 files, 3.7MB, built in 57 seconds ==> Caveats ==> isl@0.18 isl@0.18 is keg-only, which means it was not symlinked into /home/bcn/.linuxbrew, because this is an alternate version of another formula. For compilers to find isl@0.18 you may need to set: export LDFLAGS="-L/home/bcn/.linuxbrew/opt/isl@0.18/lib" export CPPFLAGS="-I/home/bcn/.linuxbrew/opt/isl@0.18/include" For pkg-config to find isl@0.18 you may need to set: export PKG_CONFIG_PATH="/home/bcn/.linuxbrew/opt/isl@0.18/lib/pkgconfig" ==> openssl A CA file has been bootstrapped using certificates from the SystemRoots keychain. To add additional certificates (e.g. the certificates added in the System keychain), place .pem files in /home/bcn/.linuxbrew/etc/openssl/certs and run /home/bcn/.linuxbrew/opt/openssl/bin/c_rehash ==> Installing dependencies for git: gpatch, ncurses, gettext, bzip2, pcre2, libbsd and expat ==> Installing git dependency: gpatch ==> Downloading https://linuxbrew.bintray.com/bottles/gpatch-2.7.6.x86_64_linux. ######################################################################## 100.0% ==> Pouring gpatch-2.7.6.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/gpatch/2.7.6: 10 files, 885.9KB ==> Installing git dependency: ncurses ==> Downloading https://ftp.gnu.org/gnu/ncurses/ncurses-6.1.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/home/bcn/.linuxbrew/Cellar/ncurses/6.1 --enable-pc-fil ==> make install ? 痕home/bcn/.linuxbrew/Cellar/ncurses/6.1: 3,878 files, 9MB, built in 34 seconds ==> Installing git dependency: gettext ==> Downloading https://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz ######################################################################## 100.0% ==> Downloading http://xmlsoft.org/sources/libxml2-2.9.7.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/home/bcn/.linuxbrew/Cellar/gettext/0.19.8.1_1/libexec ==> make install ==> ./configure --disable-silent-rules --prefix=/home/bcn/.linuxbrew/Cellar/gett ==> make ==> make install ? 痕home/bcn/.linuxbrew/Cellar/gettext/0.19.8.1_1: 2,198 files, 28MB, built in 3 minutes 20 seconds ==> Installing git dependency: bzip2 ==> Downloading https://linuxbrew.bintray.com/bottles/bzip2-1.0.6_1.x86_64_linux ######################################################################## 100.0% ==> Pouring bzip2-1.0.6_1.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/bzip2/1.0.6_1: 30 files, 1.5MB ==> Installing git dependency: pcre2 ==> Downloading https://linuxbrew.bintray.com/bottles/pcre2-10.32.x86_64_linux.b ######################################################################## 100.0% ==> Pouring pcre2-10.32.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/pcre2/10.32: 228 files, 6.3MB ==> Installing git dependency: libbsd ==> Downloading https://linuxbrew.bintray.com/bottles/libbsd-0.8.3.x86_64_linux. ######################################################################## 100.0% ==> Pouring libbsd-0.8.3.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/libbsd/0.8.3: 82 files, 682.5KB ==> Installing git dependency: expat ==> Downloading https://linuxbrew.bintray.com/bottles/expat-2.2.6.x86_64_linux.b ######################################################################## 100.0% ==> Pouring expat-2.2.6.x86_64_linux.bottle.tar.gz ? 痕home/bcn/.linuxbrew/Cellar/expat/2.2.6: 18 files, 694.8KB ==> Installing git ==> Downloading https://www.kernel.org/pub/software/scm/git/git-2.20.1.tar.xz ==> Downloading from https://mirrors.edge.kernel.org/pub/software/scm/git/git-2. ######################################################################## 100.0% ==> make install prefix=/home/bcn/.linuxbrew/Cellar/git/2.20.1 sysconfdir=/home/ ==> make ==> make test ==> make CC=gcc-5 CFLAGS= LDFLAGS= ==> Downloading https://www.kernel.org/pub/software/scm/git/git-manpages-2.20.1. ==> Downloading from https://mirrors.edge.kernel.org/pub/software/scm/git/git-ma ######################################################################## 100.0% ==> Downloading https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.20.1. ==> Downloading from https://mirrors.edge.kernel.org/pub/software/scm/git/git-ht ######################################################################## 100.0% ==> Downloading https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Net-SMTP-SSL-1.04 ######################################################################## 100.0% ==> Caveats Bash completion has been installed to: /home/bcn/.linuxbrew/etc/bash_completion.d Emacs Lisp files have been installed to: /home/bcn/.linuxbrew/share/emacs/site-lisp/git ==> Summary ? 痕home/bcn/.linuxbrew/Cellar/git/2.20.1: 1,449 files, 44MB, built in 17 seconds ==> Caveats ==> git Bash completion has been installed to: /home/bcn/.linuxbrew/etc/bash_completion.d Emacs Lisp files have been installed to: /home/bcn/.linuxbrew/share/emacs/site-lisp/git ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations Already up-to-date. <font color="#ff0000" size="4"><strong>==> Installation successful!</strong></font> </p> |
追加の設定
あとは、下記にあるように、
analyticsを無効にしたり、ドネーションしたり、sudo権があれば色々設定したり、自分の.profileの環境設定をして、PATHを追加して、GCCをインストールして、ログインし直して・・・という追加処理を行う。
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 |
==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics.html ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations ==> Next steps: - Install the Linuxbrew dependencies if you have sudo access: Debian, Ubuntu, etc. sudo apt-get install build-essential Fedora, Red Hat, CentOS, etc. sudo yum groupinstall 'Development Tools' See http://linuxbrew.sh/#dependencies for more information. - Add Linuxbrew to your ~/.profile by running echo 'eval $(/home/bcn/.linuxbrew/bin/brew shellenv)' >>~/.profile - Add Linuxbrew to your PATH PATH="/home/bcn/.linuxbrew/bin:$PATH" - We recommend that you install GCC by running: brew install gcc - After modifying your shell profile, you may need to restart your session (logout and then log back in) if the brew command isn't found. - Run `brew help` to get started - Further documentation: https://docs.brew.sh Warning: /home/bcn/.linuxbrew/bin is not in your PATH. [bcn@sv7612 ~]$ |
言われたとおり実行
1 2 3 4 5 6 |
[bcn@sv7612 ~]$ echo 'eval $(/home/bcn/.linuxbrew/bin/brew shellenv)' >>~/.profile [bcn@sv7612 ~]$ PATH="/home/bcn/.linuxbrew/bin:$PATH" [bcn@sv7612 ~]$ brew install gcc Warning: gcc 5.5.0_4 is already installed and up-to-date To reinstall 5.5.0_4, run `brew reinstall gcc` [bcn@sv7612 ~]$ |
doctorでチェック
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[bcn@sv7612 ~]$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew. You can install Homebrew anywhere you want but some bottles (binary packages) can only be used with a standard prefix and some formulae (packages) may not build correctly with a non-standard prefix. Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /home/bcn/.linuxbrew/sbin. Consider setting the PATH for example like so echo 'export PATH="/home/bcn/.linuxbrew/sbin:$PATH"' >> ~/.bash_profile [bcn@sv7612 ~]$ |
大丈夫そうだ。指示されているように、一度ログアウトして、再度ログインすれば有効になるはず。