Created
July 3, 2015 13:04
-
-
Save boscoworks/c9913a6ff067c560a3c6 to your computer and use it in GitHub Desktop.
CentOSにAndroidのCI環境を作ろうとして失敗した ref: http://qiita.com/boscoworks/items/da45fb0e580c8bf5ea2a
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
$ ll /usr/local/share/downloaded/android-sdk | |
合計 164180 | |
-rwxr-xr-x 1 root root 168119905 5月 8 10:55 2015 android-sdk_r24.2-linux.tgz |
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
sudo tar -zxvf /usr/local/share/downloaded/android-sdk/android-sdk_r24.2-linux.tgz -C /usr/local/lib/ |
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
$ sudo /usr/sbin/alternatives --config java | |
3 プログラムがあり 'java' を提供します。 | |
選択 コマンド | |
----------------------------------------------- | |
1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java | |
2 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java | |
*+ 3 /usr/local/lib/jdk1.8.0_45/bin/java | |
Enter を押して現在の選択 [+] を保持するか、選択番号を入力します: |
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
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key |
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
sudo yum install jenkins |
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
sudo service jenkins start |
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
sudo chkconfig jenkins on |
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
sudo yum install dkms |
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
sudo wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -P /etc/yum.repos.d/ |
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
sudo yum install VirtualBox-4.3 |
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
sudo /etc/init.d/vboxdrv setup |
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
sudo ln -s /usr/lib64/nvidia-graphics-310.19/libGL.so.1 /usr/lib/virtualbox/libGL.so.1 | |
sudo ln -s /usr/lib64/nvidia-graphics-310.19/libnvidia-tls.so.310.19 /usr/lib/virtualbox/libnvidia-tls.so.310.19 | |
sudo ln -s /usr/lib64/nvidia-graphics-310.19/libnvidia-glcore.so.310.19 /usr/lib/virtualbox/libnvidia-glcore.so.310.19 |
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
sudo /usr/local/lib/android-sdk-linux/tools/android update sdk -u -a -t 1,2,3,22,23,24,25,26,27,28,126,127,61,62,63,68,69,70,73,74,75,76,77,78,80,81 |
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
export ANDROID_HOME=/usr/local/lib/android-sdk-linux/ |
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://ftp.riken.jp/Linux/centos/6/updates/x86_64/Packages/glibc-2.12-1.149.el6_6.5.i686.rpm -P /usr/local/share/downloaded/glibc/ | |
wget ftp://195.220.108.108/linux/opensuse/distribution/11.4/repo/oss/suse/i586/libfreebl3-3.12.9-4.3.i586.rpm -P /usr/local/share/downloaded/libfreebl3/ | |
wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.4/x86_64/os/Packages/libstdc++-4.4.7-3.el6.i686.rpm -P /usr/local/share/downloaded/libstdc++/ | |
wget ftp://ftp.okhysing.is/redhat/6.4/os/x86_64/Packages/libgcc-4.4.7-3.el6.i686.rpm -P /usr/local/share/downloaded/libgcc/ | |
wget ftp://rpmfind.net/linux/centos/6.6/os/i386/Packages/zlib-1.2.3-29.el6.i686.rpm -P /usr/local/share/downloaded/zlib/ |
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
sudo chown root:root ¥ | |
/usr/local/share/downloaded/glibc/glibc-2.12-1.149.el6_6.5.i686.rpm ¥ | |
/usr/local/share/downloaded/libfreebl3/libfreebl3-3.12.9-4.3.i586.rpm ¥ | |
/usr/local/share/downloaded/libstdc++/libstdc++-4.4.7-3.el6.i686.rpm ¥ | |
/usr/local/share/downloaded/libgcc/libgcc-4.4.7-3.el6.i686.rpm ¥ | |
/usr/local/share/downloaded/zlib/zlib-1.2.3-29.el6.i686.rpm |
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
sudo rpm -ivh ¥ | |
/usr/local/share/downloaded/glibc/glibc-2.12-1.149.el6_6.5.i686.rpm ¥ | |
/usr/local/share/downloaded/libfreebl3/libfreebl3-3.12.9-4.3.i586.rpm ¥ | |
/usr/local/share/downloaded/libstdc++/libstdc++-4.4.7-3.el6.i686.rpm ¥ | |
/usr/local/share/downloaded/libgcc/libgcc-4.4.7-3.el6.i686.rpm ¥ | |
/usr/local/share/downloaded/zlib/zlib-1.2.3-29.el6.i686.rpm |
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
$ ll /usr/local/share/downloaded/jdk/ | |
合計 169216 | |
-rw-r--r-- 1 root root 173271626 5月 11 11:21 2015 jdk-8u45-linux-x64.gz |
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
sudo tar -zvvf /usr/local/share/downloaded/jdk/jdk-8u45-linux-x64.gz -C /usr/local/lib/ |
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
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/local/lib/jdk1.8.0_45/bin/java 180000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment