Last active
April 10, 2017 05:59
-
-
Save MizukiSonoko/ef29597cdef4a00ebe41 to your computer and use it in GitHub Desktop.
solarisに色々入れるscript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /tmp/gcc | |
cd /tmp/gcc | |
wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-5.1.0/gcc-5.1.0.tar.gz | |
tar xzvf gcc-5.1.0.tar.gz | |
wget http://www.mpfr.org/mpfr-current/mpfr-3.1.5.tar.gz | |
tar -xf mpfr-3.1.5.tar.gz | |
wget ftp://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.xz | |
tar -xf gmp-6.0.0a.tar.xz | |
wget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz | |
tar -xf mpc-1.0.3.tar.gz | |
rm *.xz | |
rm *.gz | |
mv mpc-1.0.3 gcc-5.1.0/mpc | |
mv mpfr-3.1.5 gcc-5.1.0/mpfr | |
mv gmp-6.0.0 gcc-5.1.0/gmp | |
mkdir gcc-build | |
cd gcc-build | |
../gcc-5.1.0/configure --prefix=$HOME/gcc --disable-multilib --with-gnu-as --with-as=/usr/local/gnu/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-languages=c,c++ --without-libiconv-prefix --disable-nls --build=i386-pc-solaris2.11 | |
make -j24 | |
make install | |
rm -rf /tmp/gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /tmp/nginx | |
cd /tmp/nginx | |
mkdir ~/nginx | |
curl -O http://nginx.org/download/nginx-1.8.0.tar.gz | |
tar xzvf nginx-1.8.0.tar.gz | |
cd nginx-1.8.0/ | |
./configure --prefix=$HOME/nginx --with-http_ssl_module | |
make -j 24 | |
make install | |
cd | |
rm -rf /tmp/nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /tmp/python | |
cd /tmp/python | |
mkdir ~/python | |
curl -O https://www.python.org/ftp/python/3.5.0/Python-3.5.0a4.tar.xz | |
tar Jxvf Python-3.5.0a4.tar.xz | |
cd Python-3.5.0a4 | |
./configure --without-gcc --prefix=$HOME/python | |
make -j24 | |
make install | |
make clean | |
PATH=$PATH:$HOME/bin | |
rm -rf /tmp/python | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://llvm.org/releases/3.6.1/cfe-3.6.1.src.tar.xz | |
wget http://llvm.org/releases/3.6.1/llvm-3.6.1.src.tar.xz | |
wget http://llvm.org/releases/3.6.1/compiler-rt-3.6.1.src.tar.xz | |
tar Jvxf cfe-3.6.1.src.tar.xz | |
tar Jvxf llvm-3.6.1.src.tar.xz | |
tar Jvxf compiler-rt-3.6.1.src.tar.xz | |
mv cfe-3.6.1.src llvm-3.6.1.src/tools/clang | |
mv compiler-rt-3.6.1.src llvm-3.6.1.src/tools/compiler-rt | |
cd llvm-3.6.1.src/ | |
./configure --prefix=$HOME/llvm --enable-optimized --disable-multilib CC=$HOME/gcc/bin/gcc CXX=$HOME/gcc/bin/g++ --with-gnu-ld --with-gnu-as |
ld: fatal: unrecognized option '--'
ld: fatal: use the '-z help' option for usage information
collect2: error: ld returned 1 exit status
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👌 インストールできた