Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:cas:install [2011/09/05 14:52] PROCACCIA |
— (current) |
| |
| |
===== references ===== | |
| |
http://www.ja-sig.org/wiki/display/CAS/CAS-toolbox#CAS-toolbox-Overview | |
http://www.esup-portail.org/display/CAS/CAS+Toolbox+-+Package+d%27installation+de+CAS+V3 | |
http://perso.univ-lemans.fr/~brichard/?doc=Cas | |
| |
===== tomcat6 ===== | |
| |
| |
<code> | |
[root@cas3 /]# yum install tomcat6 tomcat6-admin-webapps tomcat6-webapps | |
| |
============================================================================================================================================ | |
Package Arch Version Repository Size | |
============================================================================================================================================ | |
Installing: | |
tomcat6 noarch 6.0.24-24.el6_0 updates 86 k | |
tomcat6-admin-webapps noarch 6.0.24-24.el6_0 updates 34 k | |
tomcat6-webapps noarch 6.0.24-24.el6_0 updates 606 k | |
Installing for dependencies: | |
alsa-lib i686 1.0.21-3.el6 base 366 k | |
apache-tomcat-apis noarch 0.1-1.el6 base 164 k | |
at i686 3.1.10-43.el6 updates 59 k | |
atk i686 1.28.0-2.el6 base 190 k | |
axis noarch 1.2.1-7.2.el6 base 1.5 M | |
bc i686 1.06.95-1.el6 base 106 k | |
bcel i686 5.2-7.2.el6 base 1.2 M | |
cairo i686 1.8.8-3.1.el6 base 319 k | |
classpathx-jaf i686 1.0-15.4.el6 base 92 k | |
classpathx-mail noarch 1.1.1-9.4.el6 base 479 k | |
cvs i686 1.11.23-11.el6_0.1 updates 700 k | |
ecj i686 1:3.4.2-6.el6 base 2.5 M | |
file i686 5.04-6.el6 updates 44 k | |
fontconfig i686 2.8.0-3.el6 base 186 k | |
freetype i686 2.3.11-6.el6_0.2 updates 362 k | |
gettext i686 0.17-16.el6 base 1.8 M | |
gtk2 i686 2.18.9-4.el6 base 3.2 M | |
hicolor-icon-theme noarch 0.11-1.1.el6 base 40 k | |
jakarta-commons-collections noarch 3.2.1-3.4.el6 base 523 k | |
jakarta-commons-daemon i686 1:1.0.1-8.9.el6 base 43 k | |
jakarta-commons-dbcp-tomcat5 noarch 1.2.1-13.8.el6 base 108 k | |
jakarta-commons-discovery noarch 1:0.4-5.4.el6 base 73 k | |
jakarta-commons-httpclient i686 1:3.1-0.6.el6 base 519 k | |
jakarta-commons-logging noarch 1.0.4-10.el6 base 52 k | |
jakarta-commons-pool-tomcat5 i686 1.3-12.7.el6 base 86 k | |
jakarta-taglibs-standard noarch 1.1.1-11.4.el6 base 384 k | |
jasper-libs i686 1.900.1-15.el6 base 137 k | |
java-1.5.0-gcj i686 1.5.0.0-29.1.el6 base 138 k | |
java_cup i686 1:0.10k-5.el6 base 178 k | |
jpackage-utils noarch 1.7.5-3.12.el6 base 59 k | |
libICE i686 1.0.6-1.el6 base 52 k | |
libSM i686 1.1.0-7.1.el6 base 26 k | |
libX11 i686 1.3-2.el6 base 585 k | |
libX11-common noarch 1.3-2.el6 base 188 k | |
libXau i686 1.0.5-1.el6 base 22 k | |
libXcomposite i686 0.4.1-2.el6 base 17 k | |
libXcursor i686 1.1.10-2.el6 base 32 k | |
libXdamage i686 1.1.2-1.el6 base 16 k | |
libXext i686 1.1-3.el6 base 33 k | |
libXfixes i686 4.0.4-1.el6 base 19 k | |
libXft i686 2.1.13-4.1.el6 base 48 k | |
libXi i686 1.3-3.el6 base 32 k | |
libXinerama i686 1.1-1.el6 base 15 k | |
libXrandr i686 1.3.0-4.el6 base 29 k | |
libXrender i686 0.9.5-1.el6 base 26 k | |
libXtst i686 1.0.99.2-3.el6 base 22 k | |
libart_lgpl i686 2.3.20-5.1.el6 base 63 k | |
libgcj i686 4.4.4-13.el6 base 17 M | |
libgomp i686 4.4.4-13.el6 base 110 k | |
libthai i686 0.1.12-3.el6 base 183 k | |
libxcb i686 1.5-1.el6 base 104 k | |
log4j i686 1.2.14-6.4.el6 base 603 k | |
mx4j noarch 1:3.0.1-9.13.el6 base 1.1 M | |
pango i686 1.28.1-3.el6_0.5 updates 350 k | |
patch i686 2.6-6.el6 base 96 k | |
pax i686 3.4-10.1.el6 base 69 k | |
pixman i686 0.18.4-1.el6_0.1 updates 154 k | |
redhat-lsb i686 4.0-2.1.el6.centos base 26 k | |
regexp i686 1.5-4.4.el6 base 97 k | |
sinjdoc i686 0.5-9.1.el6 base 646 k | |
tomcat6-el-2.1-api noarch 6.0.24-24.el6_0 updates 41 k | |
tomcat6-jsp-2.1-api noarch 6.0.24-24.el6_0 updates 78 k | |
tomcat6-lib noarch 6.0.24-24.el6_0 updates 3.4 M | |
tomcat6-servlet-2.5-api noarch 6.0.24-24.el6_0 updates 92 k | |
wsdl4j noarch 1.5.2-7.8.el6 base 157 k | |
xalan-j2 noarch 2.7.0-9.8.el6 base 1.8 M | |
xml-commons-apis i686 1.3.04-3.6.el6 base 388 k | |
xml-commons-resolver i686 1.1-4.18.el6 base 128 k | |
zip i686 3.0-1.el6 base 252 k | |
| |
Transaction Summary | |
============================================================================================================================================ | |
Install 72 Package(s) | |
Upgrade 0 Package(s) | |
| |
Total download size: 45 M | |
Installed size: 121 M | |
Is this ok [y/N]: y | |
| |
| |
Dependency Installed: | |
alsa-lib.i686 0:1.0.21-3.el6 apache-tomcat-apis.noarch 0:0.1-1.el6 | |
at.i686 0:3.1.10-43.el6 atk.i686 0:1.28.0-2.el6 | |
axis.noarch 0:1.2.1-7.2.el6 bc.i686 0:1.06.95-1.el6 | |
bcel.i686 0:5.2-7.2.el6 cairo.i686 0:1.8.8-3.1.el6 | |
classpathx-jaf.i686 0:1.0-15.4.el6 classpathx-mail.noarch 0:1.1.1-9.4.el6 | |
cvs.i686 0:1.11.23-11.el6_0.1 ecj.i686 1:3.4.2-6.el6 | |
file.i686 0:5.04-6.el6 fontconfig.i686 0:2.8.0-3.el6 | |
freetype.i686 0:2.3.11-6.el6_0.2 gettext.i686 0:0.17-16.el6 | |
gtk2.i686 0:2.18.9-4.el6 hicolor-icon-theme.noarch 0:0.11-1.1.el6 | |
jakarta-commons-collections.noarch 0:3.2.1-3.4.el6 jakarta-commons-daemon.i686 1:1.0.1-8.9.el6 | |
jakarta-commons-dbcp-tomcat5.noarch 0:1.2.1-13.8.el6 jakarta-commons-discovery.noarch 1:0.4-5.4.el6 | |
jakarta-commons-httpclient.i686 1:3.1-0.6.el6 jakarta-commons-logging.noarch 0:1.0.4-10.el6 | |
jakarta-commons-pool-tomcat5.i686 0:1.3-12.7.el6 jakarta-taglibs-standard.noarch 0:1.1.1-11.4.el6 | |
jasper-libs.i686 0:1.900.1-15.el6 java-1.5.0-gcj.i686 0:1.5.0.0-29.1.el6 | |
java_cup.i686 1:0.10k-5.el6 jpackage-utils.noarch 0:1.7.5-3.12.el6 | |
libICE.i686 0:1.0.6-1.el6 libSM.i686 0:1.1.0-7.1.el6 | |
libX11.i686 0:1.3-2.el6 libX11-common.noarch 0:1.3-2.el6 | |
libXau.i686 0:1.0.5-1.el6 libXcomposite.i686 0:0.4.1-2.el6 | |
libXcursor.i686 0:1.1.10-2.el6 libXdamage.i686 0:1.1.2-1.el6 | |
libXext.i686 0:1.1-3.el6 libXfixes.i686 0:4.0.4-1.el6 | |
libXft.i686 0:2.1.13-4.1.el6 libXi.i686 0:1.3-3.el6 | |
libXinerama.i686 0:1.1-1.el6 libXrandr.i686 0:1.3.0-4.el6 | |
libXrender.i686 0:0.9.5-1.el6 libXtst.i686 0:1.0.99.2-3.el6 | |
libart_lgpl.i686 0:2.3.20-5.1.el6 libgcj.i686 0:4.4.4-13.el6 | |
libgomp.i686 0:4.4.4-13.el6 libthai.i686 0:0.1.12-3.el6 | |
libxcb.i686 0:1.5-1.el6 log4j.i686 0:1.2.14-6.4.el6 | |
mx4j.noarch 1:3.0.1-9.13.el6 pango.i686 0:1.28.1-3.el6_0.5 | |
patch.i686 0:2.6-6.el6 pax.i686 0:3.4-10.1.el6 | |
pixman.i686 0:0.18.4-1.el6_0.1 redhat-lsb.i686 0:4.0-2.1.el6.centos | |
regexp.i686 0:1.5-4.4.el6 sinjdoc.i686 0:0.5-9.1.el6 | |
tomcat6-el-2.1-api.noarch 0:6.0.24-24.el6_0 tomcat6-jsp-2.1-api.noarch 0:6.0.24-24.el6_0 | |
tomcat6-lib.noarch 0:6.0.24-24.el6_0 tomcat6-servlet-2.5-api.noarch 0:6.0.24-24.el6_0 | |
wsdl4j.noarch 0:1.5.2-7.8.el6 xalan-j2.noarch 0:2.7.0-9.8.el6 | |
xml-commons-apis.i686 0:1.3.04-3.6.el6 xml-commons-resolver.i686 0:1.1-4.18.el6 | |
zip.i686 0:3.0-1.el6 | |
| |
Complete! | |
| |
</code> | |
| |
| |
===== ant ===== | |
| |
| |
<code> | |
[root@cas3 /]# yum install ant | |
| |
| |
============================================================================================================================================ | |
Package Arch Version Repository Size | |
============================================================================================================================================ | |
Installing: | |
ant i686 1.7.1-13.el6 base 2.2 M | |
Installing for dependencies: | |
cloog-ppl i686 0.15.7-1.2.el6 base 93 k | |
cpp i686 4.4.4-13.el6 base 3.4 M | |
gcc i686 4.4.4-13.el6 base 8.1 M | |
gcc-java i686 4.4.4-13.el6 base 3.4 M | |
glibc-devel i686 2.12-1.7.el6_0.5 updates 961 k | |
glibc-headers i686 2.12-1.7.el6_0.5 updates 600 k | |
java-1.5.0-gcj-devel i686 1.5.0.0-29.1.el6 base 46 k | |
kernel-headers i686 2.6.32-71.29.1.el6 updates 991 k | |
libgcj-devel i686 4.4.4-13.el6 base 1.6 M | |
libgcj-src i686 4.4.4-13.el6 base 12 M | |
mpfr i686 2.4.1-6.el6 base 153 k | |
ppl i686 0.10.2-11.el6 base 1.3 M | |
xerces-j2 i686 2.7.1-12.5.el6 base 2.6 M | |
zlib-devel i686 1.2.3-25.el6 base 43 k | |
| |
Transaction Summary | |
============================================================================================================================================ | |
Install 15 Package(s) | |
Upgrade 0 Package(s) | |
| |
Total download size: 38 M | |
Installed size: 74 M | |
Is this ok [y/N]: y | |
Downloading Packages: | |
(1/15): ant-1.7.1-13.el6.i686.rpm | 2.2 MB 00:06 | |
(2/15): cloog-ppl-0.15.7-1.2.el6.i686.rpm | 93 kB 00:00 | |
(3/15): cpp-4.4.4-13.el6.i686.rpm | 3.4 MB 00:24 | |
(4/15): gcc-4.4.4-13.el6.i686.rpm | 8.1 MB 00:21 | |
(5/15): gcc-java-4.4.4-13.el6.i686.rpm | 3.4 MB 00:07 | |
(6/15): glibc-devel-2.12-1.7.el6_0.5.i686.rpm | 961 kB 00:01 | |
(7/15): glibc-headers-2.12-1.7.el6_0.5.i686.rpm | 600 kB 00:00 | |
(8/15): java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.i686.rpm | 46 kB 00:00 | |
(9/15): kernel-headers-2.6.32-71.29.1.el6.i686.rpm | 991 kB 00:00 | |
(10/15): libgcj-devel-4.4.4-13.el6.i686.rpm | 1.6 MB 00:03 | |
(11/15): libgcj-src-4.4.4-13.el6.i686.rpm | 12 MB 00:23 | |
(12/15): mpfr-2.4.1-6.el6.i686.rpm | 153 kB 00:00 | |
(13/15): ppl-0.10.2-11.el6.i686.rpm | 1.3 MB 00:03 | |
(14/15): xerces-j2-2.7.1-12.5.el6.i686.rpm | 2.6 MB 00:04 | |
(15/15): zlib-devel-1.2.3-25.el6.i686.rpm | 43 kB 00:00 | |
-------------------------------------------------------------------------------------------------------------------------------------------- | |
Total 384 kB/s | 38 MB 01:40 | |
Running rpm_check_debug | |
Running Transaction Test | |
Transaction Test Succeeded | |
Running Transaction | |
Installing : libgcj-src-4.4.4-13.el6.i686 1/15 | |
Installing : kernel-headers-2.6.32-71.29.1.el6.i686 2/15 | |
Installing : glibc-headers-2.12-1.7.el6_0.5.i686 3/15 | |
Installing : glibc-devel-2.12-1.7.el6_0.5.i686 4/15 | |
Installing : zlib-devel-1.2.3-25.el6.i686 5/15 | |
Installing : mpfr-2.4.1-6.el6.i686 6/15 | |
Installing : cpp-4.4.4-13.el6.i686 7/15 | |
Installing : ppl-0.10.2-11.el6.i686 8/15 | |
Installing : cloog-ppl-0.15.7-1.2.el6.i686 9/15 | |
Installing : gcc-4.4.4-13.el6.i686 10/15 | |
Installing : xerces-j2-2.7.1-12.5.el6.i686 11/15 | |
Installing : libgcj-devel-4.4.4-13.el6.i686 12/15 | |
Installing : gcc-java-4.4.4-13.el6.i686 13/15 | |
Installing : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.i686 14/15 | |
Installing : ant-1.7.1-13.el6.i686 15/15 | |
| |
Installed: | |
ant.i686 0:1.7.1-13.el6 | |
| |
Dependency Installed: | |
cloog-ppl.i686 0:0.15.7-1.2.el6 cpp.i686 0:4.4.4-13.el6 gcc.i686 0:4.4.4-13.el6 | |
gcc-java.i686 0:4.4.4-13.el6 glibc-devel.i686 0:2.12-1.7.el6_0.5 glibc-headers.i686 0:2.12-1.7.el6_0.5 | |
java-1.5.0-gcj-devel.i686 0:1.5.0.0-29.1.el6 kernel-headers.i686 0:2.6.32-71.29.1.el6 libgcj-devel.i686 0:4.4.4-13.el6 | |
libgcj-src.i686 0:4.4.4-13.el6 mpfr.i686 0:2.4.1-6.el6 ppl.i686 0:0.10.2-11.el6 | |
xerces-j2.i686 0:2.7.1-12.5.el6 zlib-devel.i686 0:1.2.3-25.el6 | |
| |
Complete! | |
</code> | |
| |
===== CAS toolbox ===== | |
| |
<code> | |
[root@cas3 ~]# wget https://sourcesup.cru.fr/frs/download.php/3675/cas-toolbox-3.4.7-1.tar.gz | |
[root@cas3 ~]# tar xvfz cas-toolbox-3.4.7-1.tar.gz | |
| |
[root@cas3 cas-toolbox-3.4.7-1]# cp build.sample.properties build.properties | |
[root@cas3 cas-toolbox-3.4.7-1]# vim build.properties | |
[root@cas3 cas-toolbox-3.4.7-1]# cp config.sample.properties config.properties | |
</code> | |
| |
==== init ==== | |
| |
La construction de CAS fait usage de maven ( http://maven.apache.org/ http://www.ja-sig.org/products/cas/developers/maven/index.html) , ce qui donne une étape d'initialisation particuliere où beaucoup de fichier sont téléchargés -> passer en maven.offline = true dans le build.properties afin de travailler en mode non connecté apres le premier init !. | |
| |
<code> | |
[root@cas3 cas-toolbox-3.4.7-1]# ant init | |
Buildfile: build.xml | |
| |
_version.display: | |
[echo] Pacakging on CAS 3.4.7 | |
| |
_maven.init: | |
[echo] Get CAS dependency in remote repository | |
[mvn:dependencies] Downloading: org/jasig/cas/cas-server-core/3.4.7/cas-server-core-3.4.7.pom from central | |
[mvn:dependencies] Downloading: org/jasig/cas/cas-server/3.4.7/cas-server-3.4.7.pom from central | |
... | |
... | |
[mvn:dependencies] Downloading: org/springframework/spring-expression/3.0.4.RELEASE/spring-expression-3.0.4.RELEASE.jar from central | |
[copy] Copying 57 files to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/lib | |
[copy] Copying 1 file to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/auth-configuration | |
[echo] Enable auth Handler fileHandler | |
[copy] Copying 1 file to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/lib | |
[copy] Copying 2 files to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/lib | |
[copy] Copying 1 file to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/auth-configuration | |
[javac] Compiling 1 source file to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/classes | |
[javac] Compiling 5 source files to /root/cas-toolbox-3.4.7-1/build/cas/WEB-INF/classes | |
[javac] ---------- | |
[javac] 1. WARNING in /root/cas-toolbox-3.4.7-1/update.esup/source/org/jasig/cas/util/HttpClient.java (at line 195) | |
[javac] connection.setFollowRedirects(false); | |
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
[javac] The static method setFollowRedirects(boolean) from the type HttpURLConnection should be accessed in a static way | |
[javac] ---------- | |
[javac] 1 problem (1 warning) | |
| |
init: | |
| |
BUILD SUCCESSFUL | |
Total time: 3 minutes 18 seconds | |
</code> | |
| |
| |
==== deploy ==== | |
| |
<code> | |
[root@cas3 cas-toolbox-3.4.7-1]# ant deploy | |
Buildfile: build.xml | |
| |
deploy: | |
[copy] Copying 204 files to /usr/share/tomcat6/webapps/cas | |
| |
BUILD SUCCESSFUL | |
Total time: 1 second | |
</code> | |
| |
===== java ===== | |
| |
==== openJDK ==== | |
| |
<code> | |
[root@cas3 tomcat6]# yum install java-1.6.0-openjdk-devel | |
| |
| |
========================================================================================================================================== | |
Package Arch Version Repository Size | |
========================================================================================================================================== | |
Installing: | |
java-1.6.0-openjdk-devel i686 1:1.6.0.0-1.31.b17.el6_0 updates 8.5 M | |
Installing for dependencies: | |
giflib i686 4.1.6-3.1.el6 base 37 k | |
java-1.6.0-openjdk i686 1:1.6.0.0-1.31.b17.el6_0 updates 26 M | |
jline noarch 0.9.94-0.8.el6 base 86 k | |
libasyncns i686 0.8-1.1.el6 base 24 k | |
libsndfile i686 1.0.20-3.el6 base 235 k | |
pulseaudio-libs i686 0.9.21-13.el6 base 453 k | |
rhino noarch 1.7-0.7.r2.2.el6 base 778 k | |
tzdata-java noarch 2011g-1.el6 updates 152 k | |
| |
Transaction Summary | |
========================================================================================================================================== | |
Install 9 Package(s) | |
Upgrade 0 Package(s) | |
| |
Total download size: 36 M | |
Installed size: 119 M | |
Is this ok [y/N]: y | |
</code> | |
| |
==== java SUN / oracle ==== | |
| |
http://jehurst.wordpress.com/2011/01/16/rhel-6-for-the-clueless-sun-java/ | |