JDK 다운로드
http://java.sun.com/javase/downloads/index.jsp

리눅스 버전의 .bin파일을
/usr/local/src 에 다운로드
jdk-6u17-linux-i586.bin

root 계정인데도 허가 거부
권한 변경후 설치

# chmod 700 jdk-6u17-linux-i586.bin
# ./jdk-6u17-linux-i586.bin


라이정책 관련된 내용이 출력되는데 엔터키 계속 클릭...
.....
라이선스 동의에 y 입력
설치는 완료
jdk1.6.0_17 디렉토리 생성됨

/usr/local/java 경로로 옮김

#mv jdk1.6.0_17 /usr/local/java


[환경 설정]


#vi /etc/profile

파일 마지막 부분에 JDK 설정 추가

.....

# JAVA SDK 6

JAVA_HOME=/usr/local/java
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$
CLASSPATH:$JAVA_HOME/lib/*:.


변경된 내용 적용후 설치버전 확인.

[root@local]# source /etc/profile
[root@local]# javac -version
javac 1.6.0_17


설치완료.







'Linux' 카테고리의 다른 글

[fedora] Sendmail, dovecot, pop3, sasl  (0) 2009.12.21
MySQL설치중 오류:error: No curses/termcap library found  (1) 2009.11.24
Posted by finewoo
,



톰캣 구동시 아래 메지가 나타날때의 해결방법이다.


정보: The APR based Apache Tomcat Native which allows optimal performance in production environments was not found the java.library.path: .......(이하 생략)


:요약하자면 자바경로에서 최적의 퍼포먼스를 위한 Native library를 찾지 못했다는 메시지다.



Apache Portable 관한 참고 내용이다.

- Apache Portable Runtime (APR) based Native library for Tomcat

- 참고자료 : http://tomcat.apache.org/tomcat-6.0-doc/apr.html



◈ 윈도우일 경우:

http://tomcat.heanet.ie/native/1.1.6/binaries/win32/  경로에 가셔서 "tcnative-1.dll 파일을 다운받는다.

jre/bin이 설치된 디렉토리에 복사한다.


◈ 리눅스일 경우:

http://tomcat.heanet.ie/native/1.1.6/binaries/linux/ 에서 소스를 받아서 컴파일 한다.



Most Linux distributions will ship packages for APR and OpenSSL. The JNI wrapper (libtcnative) will then have to be compiled. It depends on APR, OpenSSL, and the Java headers.

Requirements:

APR 1.2+ development headers (libapr1-dev package)
OpenSSL 0.9.7+ development headers (libssl-dev package)
JNI headers from Java compatible JDK 1.4+
GNU development environment (gcc, make)
The wrapper library sources are located in the Tomcat binary bundle, in the bin/tomcat-native.tar.gz archive. Once the build environment is installed and the source archive is extracted, the wrapper library can be compiled using (from the folder containing the configure script)


./configure && make && make install







'Server > Apache_Tomcat' 카테고리의 다른 글

tomcat error(Permission denied)  (1) 2011.08.18
Apache rewrite Module  (0) 2010.03.11
[log4sql] Logging Or Debugging SQL(Query)  (0) 2009.12.15
Posted by finewoo
,
linux에 mysql 설치중 오류
./configure 하는중
다음 오류가 날경우 해결
checking for termcap functions library... configure: error: No curses/termcap library found

해당 라이브러리를 찾지 못해 생기는 오류이다.
yum으로 라이브러리를 설치한다.

 #yum -y install ncurses-devel

'Linux' 카테고리의 다른 글

[Linux] CentOS5.3 에 JAVA(JDK) 설치  (0) 2010.02.28
[fedora] Sendmail, dovecot, pop3, sasl  (0) 2009.12.21
Posted by finewoo
,