블로그 이미지
은총애비!!

카테고리

분류 전체보기 (2538)
Linux (35)
Error 해결 방법 (5)
소소한 일상 (1631)
사진실 (0)
책책책, 책을 읽읍시다!! (21)
기타(JSP & DB & 등등) (4)
미국 주식 관련 (543)
아침형 인간 프로젝트 (292)
Total
Today
Yesterday
반응형

[Linux] apache & tomcat connectors 연동 configure중 에러 해결 방법

 

apache & tomcat connectors 연동중  make중

make: *** 타겟이 지정되지 않았고 메이크파일이 없습니다.  멈춤.

에러에 관한 내용입니다.

 

checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[root@localhost native]# make && make install
make: *** 타겟이 지정되지 않았고 메이크파일이 없습니다.  멈춤.
[root@localhost native]#

 

yum -y install gcc-c++ libstdc++-devel

 

또는

 

yum -y install gcc*

 

설치를 해줍니다...

 

그러면 configure가 에러 없이 잘 끝날겁니다...

 

configure: creating ./config.status
config.status: creating Makefile
config.status: creating apache-1.3/Makefile
config.status: creating apache-1.3/Makefile.apxs
config.status: creating apache-2.0/Makefile
config.status: creating apache-2.0/Makefile.apxs
config.status: creating common/Makefile
config.status: creating common/list.mk
config.status: creating common/jk_types.h
config.status: creating common/config.h
config.status: executing depfiles commands  => 에러 없이 잘 끝났습니다.
[root@localhost native]# make && make install
Making all in common => make가 시작 됩니다.
make[1]: Entering directory `/home/qual/tomcat-connectors-1.2.37-src/native/common'
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -I/usr/local/src/apache/include  -DHAVE_CONFIG_H -pthread -DHAVE_APR  -I/usr/include/apr-1 -I/usr/include/apr-1  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -I/usr/local/src/apache/include  -DHAVE_CONFIG_H -pthread -DHAVE_APR  -I/usr/include/apr-1 -I/usr/include/apr-1  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_connect.c -o jk_connect.lo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -I/usr/local/src/apache/include  -DHAVE_CONFIG_H -pthread -DHAVE_APR  -I/usr/include/apr-1 -I/usr/include/apr-1  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_msg_buff.c -o jk_msg_buff.lo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -I/usr/local/src/apache/include  -DHAVE_CONFIG_H -pthread -DHAVE_APR  -I/usr/include/apr-1 -I/usr/include/apr-1  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_util.c -o jk_util.lo

반응형
Posted by 은총애비!!
, |
반응형

[LINUX ERROR] apache 설치중 SSL/TLS 설치 에러

 

설치 도중 SSL/TLS 관련 에러가 났습니다.

에러 내용은 아래와 같습니다.

 

checking for OpenSSL version... checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
no OpenSSL headers found
checking for SSL-C version... checking sslc.h usability... no
checking sslc.h presence... no
checking for sslc.h... no
no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected

 

에러 해결 방법

정말 간단 합니다.!!!

 

yum -y install openssl-devel

또는

yum -y install openssl*

반응형
Posted by 은총애비!!
, |
반응형
[MicroServer G7 N54L] SAMBA SWAT 설치 및 설정

 

 

SWAT(Samba Web Adminstrator Tool)

웹 페이지 기반으로 SAMBA를 설정 할 수 있습니다.

SWAT는 TCP 901 포트를 사용 합니다.

 

아래와 같이 우선 swat가 설치 되어 있는지 확인 합니다.


[root@localhost xinetd.d]# rpm -qa |grep samba
samba4-libs-4.0.0-23.alpha11.el6.i686
samba-winbind-3.6.9-169.el6_5.i686
samba-3.6.9-169.el6_5.i686
samba-common-3.6.9-169.el6_5.i686
samba-client-3.6.9-169.el6_5.i686
samba-swat-3.6.9-169.el6_5.i686
samba-winbind-clients-3.6.9-169.el6_5.i686
[root@localhost xinetd.d]#


 

설치가 안되어 있다면

yum -y install samba-swat로 설치 합니다.

 

yum으로 설치 하면 /etc/xinetd.d/swat 파일이 생깁니다.


[root@localhost xinetd.d]# ls
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   rsync  tcpmux-server  time-stream
chargen-stream  daytime-stream  discard-stream  echo-stream  swat   time-dgram
[root@localhost xinetd.d]#


 

vi /etc/xinetd.d/swat로 파일을 엽니다.


# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        port            = 901
        socket_type     = stream
        wait            = no
        only_from       = 127.0.0.1
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
        disable         = yes  => no로 변경합니다.
}


그리고 방화벽에서 TCP 901 포트를 열어줍니다.

 

그리고 xinetd를 재시작 합니다.

[root@localhost xinetd.d]# service xinetd restart
xinetd 를 정지 중:                                           [실패]
xinetd (을)를 시작 중:                                      [ OK ]
[root@localhost xinetd.d]#

 

이렇게 하면 설치 및 설정 끝!!

 

그럼 이제 접속을 해봅시다.

http://서버IP or 도메인:901

또는

http://localhost:901

 

그런데...외부(윈도우)에서는 접속이 안된다..내부(리눅스)에서는 접속이 잘 되지만...ㅠ,.ㅠ

 

 

위 외부(윈도우)에서 접속 안되는 문제 해결

/etc/xinetd.d/swat 파일중에서

# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        port            = 901
        socket_type     = stream
        wait            = no
#      only_from       = 127.0.0.1 이부분을 주석 처리

(이부분이 접속 할 주소를 설정 하는 부분. 주석처리 함으로써 어디서든지 접속 가능해짐)
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
        disable         = no

}

 

반응형
Posted by 은총애비!!
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함