configure 에러

리눅스 2015. 8. 11. 15:37

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

yum install libxslt-devel


configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

yum install net-snmp-devel


configure: error: Please reinstall readline - I cannot find readline.h

yum install readline-devel


configure: error: Cannot find pspell

yum install aspell-devel


checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!

yum install unixODBC-devel


configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.

yum install libicu-devel


configure: error: utf8mime2text() has new signature, but U8TCANONICAL is missing. This should not happen. Check config.log for additional information.

yum install libc-client-devel


configure: error: freetype.h not found.

yum install freetype-devel


configure: error: xpm.h not found.

yum install libXpm-devel


configure: error: png.h not found.

yum install libpng-devel


configure: error: vpx_codec.h not found.

yum install libvpx-devel


configure: error: Cannot find enchant

yum install enchant-devel


configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

yum install libcurl-devel


configure: error: Cannot find ldap.h

 yum install openldap-devel


make: warning:  Clock skew detected.  Your build may be incomplete.

시간을 동기화 시킨다.



checking for termcap functions library... configure: error: No curses/termcap library found

yum -y install ncurses-devel


configure: error: C++ preprocessor "/lib/cpp" fails sanity check

yum -y install gcc-c++


configure: error: Unable to locate gmp.h

 yum -y install gmp*


configure: error: not found. Please reinstall the expat distribution.

yum -y install expat*


configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

 yum -y install curl* 또는 yum -y install curl & yum -y install curl-devel


configure: error: Please reinstall libmcrypt - I cannot find mcrypt.h 

configure: error: Please reinstall libmhash - I cannot find mhash.h

 yum install libmcrypt libmcrypt-devel libmhash libmhash-devel


Configure: error: xml2-config not found. Please check your libxml2 installation

yum install libxml2-devel


Checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's <evp.h>

yum install openssl-devel


Configure: error: Please reinstall the BZip2 distribution

 yum install bzip2-devel


Configure: error: libjpeg.(also) not found.

 yum install libjpeg-devel


Configure: error: libpng.(also) not found.

 yum install libpng-devel


Configure: error: freetype.h not found.

yum install freetype-devel


Configure: error: Cannot find MySQL header files under /usr.

Note that the MySQL client library is not bundled anymore!

 yum install mysql-devel


Configure: error: Please reinstall the ncurses distribution

yum install ncurses-devel


Configure: error: Cannot find pspell

yum install pspell-devel


Configure: error: snmp.h not found. Check your SNMP installation.

 yum install net-snmp-devel


Configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

 yum install libc-client-devel


Configure: error: libXpm.(a|so) not found   에러날때

 yum install xorg-x11-devel

ldconfig -p | grep Xpm

ldconfig -p | grep Xpm

libXpm.so.4 (libc6,x86-64) => /usr/lib64/libXpm.so.4

libXpm.so (libc6,x86-64) => /usr/lib64/libXpm.so


 ln -sf /usr/lib64/libm.so /usr/lib/libm.so

 ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so


 


Configure: error: mcrypt.h not found. Please reinstall libmcrypt.   에러날때

wget http://ftp.linux.co.kr/pub/etc/libmcrypt-2.5.7.tar.gz

    tar zxvfp libmcrypt-2.5.7.tar.gz

    cd libmcrypt-2.5.7

    ./configure && make && make install

 



configure: error: ZLIB extension requires zlib >= 1.0.9

ln -sf /usr/lib64/libgssapi_krb5.so.2.2 /usr/lib/libgssapi_krb5.so

ln -sf /usr/lib64/libkrb5.so.3.3 /usr/lib/libkrb5.so

ln -sf /usr/lib64/libk5crypto.so.3.1 /usr/lib/libk5crypto.so

ln -sf /lib64/libcom_err.so.2 /usr/lib/libcom_err.so

ln -sf /usr/lib64/libgcrypt.so.11 /usr/lib/libgcrypt.so

ln -sf /usr/lib64/libgpg-error.so.0 /usr/lib/libgpg-error.so

ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so

ln -sf /usr/lib64/libm.so /usr/lib/libm.so

ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so



configure: error: Kerberos libraries not found.

           Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )

mkdir /usr/kerberos
cd /usr/kerberos
ln -s /usr/lib64 lib



참고 사이트 http://hyperv.tistory.com/entry/apm-config%EC%8B%9C-%EC%97%90%EB%9F%AC


Posted by Narusika
,

checking "LinuxThreads"... "Not found"

configure: error: This is a linux system and Linuxthreads was not

found. On linux Linuxthreads should be used.  Please install Linuxthreads

(or a new glibc) and try again.  See the Installation chapter in the

Reference Manual for more information.


아래 한줄 입력해주자


echo '/* Linuxthreads */' >> /usr/include/pthread.h


Posted by Narusika
,

php imap 설치

리눅스/php 2015. 7. 20. 07:56

1. configure:error: Cannot find imap library ( libc-client.a). please check your c-client installaion.  


2. configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.


두가지 에러는 imap 관련 에러


 wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz

 tar zxvf imap-2007f.tar.gz

 cd imap-2007f/src/c-client

 cp *.h /usr/local/include/



cd  /usr/local/src/imap-2007f


make lnp SSLTYPE=unix

or

make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC IP=4


mkdir /usr/local/imap-2007f/

mkdir /usr/local/imap-2007f/include/

mkdir /usr/local/imap-2007f/lib/

cp c-client/*.h /usr/local/imap-2007f/include/

cp c-client/*.c /usr/local/imap-2007f/lib/

cp c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a


해당 작업 후 php컴파일 옵션중

--with-imap-ssl=/usr/local/imap-2007f \

--with-imap=/usr/local/imap-2007f \



make가 안되는 경우



osdep.c:106: warning: 'struct pam_response' declared inside parameter list

osdep.c:106: warning: its scope is only this definition or declaration, which is probably not what you want

osdep.c:106: warning: 'struct pam_message' declared inside parameter list

osdep.c: In function 'checkpw_conv':

osdep.c:110: error: invalid application of 'sizeof' to incomplete type 'struct pam_response'

osdep.c:111: error: dereferencing pointer to incomplete type

osdep.c:112: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this function)

osdep.c:112: error: (Each undeclared identifier is reported only once

osdep.c:112: error: for each function it appears in.)

osdep.c:113: error: invalid use of undefined type 'struct pam_response'

osdep.c:113: error: dereferencing pointer to incomplete type

osdep.c:113: error: 'PAM_SUCCESS' undeclared (first use in this function)

osdep.c:114: error: invalid use of undefined type 'struct pam_response'

osdep.c:114: error: dereferencing pointer to incomplete type

osdep.c:116: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)

osdep.c:117: error: invalid use of undefined type 'struct pam_response'

osdep.c:117: error: dereferencing pointer to incomplete type

osdep.c:118: error: invalid use of undefined type 'struct pam_response'

osdep.c:118: error: dereferencing pointer to incomplete type

osdep.c:120: error: 'PAM_TEXT_INFO' undeclared (first use in this function)

osdep.c:121: error: 'PAM_ERROR_MSG' undeclared (first use in this function)

osdep.c:122: error: invalid use of undefined type 'struct pam_response'

osdep.c:122: error: dereferencing pointer to incomplete type

osdep.c:123: error: invalid use of undefined type 'struct pam_response'

osdep.c:123: error: dereferencing pointer to incomplete type

osdep.c:127: error: 'PAM_CONV_ERR' undeclared (first use in this function)

osdep.c: At top level:

osdep.c:138: error: expected ')' before '*' token

osdep.c: In function 'checkpw':

osdep.c:155: error: 'pam_handle_t' undeclared (first use in this function)

osdep.c:155: error: 'hdl' undeclared (first use in this function)

osdep.c:156: error: storage size of 'conv' isn't known

osdep.c:164: error: 'PAM_SUCCESS' undeclared (first use in this function)

osdep.c:165: error: 'PAM_RHOST' undeclared (first use in this function)

osdep.c:168: error: 'PAM_ESTABLISH_CRED' undeclared (first use in this function)

osdep.c:184: error: 'checkpw_cleanup' undeclared (first use in this function)

make[3]: *** [osdep.o] Error 1

make[3]: Leaving directory `/home/kit/imap-2007f/c-client'

make[2]: *** [lnp] Error 2

make[2]: Leaving directory `/home/kit/imap-2007f/c-client'

make[1]: *** [OSTYPE] Error 2

make[1]: Leaving directory `/home/kit/imap-2007f'

make: *** [ldb] Error 2


이런식의 메시지가 뜨면서 imap 이 안되는 경우


yum install pam-devel 설치후 다시 make


------------------------------------------------------------------------------------------------------


yum install php-imap   으로 설치하고 모듈을 php.ini 에 

extension=imap.so

해주는 방법이 있다


------------------------------------------------------------------------------------------------------

위처럼해도 안될 경우


yum remove libc-client



ln -s c-client.a /usr/lib64/libc-client.a

ln -s c-client.a /usr/lib/libc-client.a

c-client.a 를 링크걸어주자 


'--with-imap=/usr/local/imap-2007f' \

'--with-imap-ssl=/usr/local/imap-2007f' \

"--with-imap-ssl" \


yum install rpm-build

이건 잘 모르곘,,,

'리눅스 > php' 카테고리의 다른 글

php 에러  (0) 2016.03.10
php-common 설치 오류  (0) 2016.02.17
phpinfo.php 다운로드 될때  (0) 2015.06.30
phpinfo.php  (0) 2015.06.28
Posted by Narusika
,

swap 메모리

리눅스 2015. 7. 14. 22:27

sysctl vm.swappiness    현재 스왑메모리의 활용도 값을 볼 수 있다.


vi /etc/sysctl.conf


맨 아래 줄에 vm.swappiness = 10 이라고 써주면  (echo 10 > /proc/sys/vm/swappines 바로 적용가능)

메모리 사용률이 90%에 도달했을때 프로세스를 옮겨야 한다는 뜻.

기본 스왑활용도는 60이며, 메모리 사용률이 40%에 도달했을때 프로세스를 옮겨야 함을 가리킨다.




스왑(swap)


메모리가 부족하면 예비공간의 역할을 한다.


-장점

메모리가 다 차면 보조공간 제공

더 많은 공간을 사용할 수 있게 드물게 필요한 항목을 옮길 수 있게함

최대 절전 기능 활용 가능


-단점

동적크기 조정 불가 하드디스크 공간을 차지

하드디스크 소모율 증가

하드디스크와 메모리의 속도 차이로 인해 병목현상이 발생




'리눅스' 카테고리의 다른 글

centos 7 yum 저장소  (0) 2015.08.11
configure 에러  (1) 2015.08.11
dmidecode 하드웨어 확인 명령어  (0) 2015.07.14
도메인을 이용해 사용자 디렉토리 접속 방법  (0) 2015.07.01
make 명령어 옵션  (0) 2015.06.28
Posted by Narusika
,

dmidecode -t 2          메인보드 확인

dmidecode -t 16         메모리 확인


dmidecode -t            타입 확인




-t, --type TYPE
Only display the entries of type TYPE. TYPE can be either a DMI type number, or a comma-separated list of type numbers, or a keyword from the following list: bios, system, baseboard, chassis, processor, memory, cache, connector, slot. Refer to the DMI TYPES section below for details.   If  this option is used more than once, the set of displayed entries will be the union of all the given types.  If TYPE is not provided or not valid, a list of all valid keywords is printed and dmidecode exits with an error.
 
DMI TYPES
       The SMBIOS specification defines the following DMI types:
       Type   Information
       ----------------------------------------
          0   BIOS
          1   System
          2   Base Board  보드명칭
          3   Chassis
          4   Processor
          5   Memory Controller
          6   Memory Module
          7   Cache
          8   Port Connector
          9   System Slots
         10   On Board Devices
         11   OEM Strings
         12   System Configuration Options
         13   BIOS Language
         14   Group Associations
         15   System Event Log
         16   Physical Memory Array  최대지원 메모리
         17   Memory Device  메모리 뱅크수 확인
         18   32-bit Memory Error
         19   Memory Array Mapped Address
         20   Memory Device Mapped Address
         21   Built-in Pointing Device
         22   Portable Battery
         23   System Reset
         24   Hardware Security
         25   System Power Controls
         26   Voltage Probe
         27   Cooling Device
         28   Temperature Probe
         29   Electrical Current Probe
         30   Out-of-band Remote Access
         31   Boot Integrity Services
         32   System Boot
         33   64-bit Memory Error
         34   Management Device
         35   Management Device Component
         36   Management Device Threshold Data
         37   Memory Channel
         38   IPMI Device
         39   Power Supply
         40   Additional Information
         41   Onboard Device
 
# dmidecode -t 2
# dmidecode 2.10
SMBIOS 2.3 present.
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
        Manufacturer: TYAN
        Product Name: TYAN High-End Dual AMD Opteron, S2882
        Version: To be filled by O.E.M.
        Serial Number: To be filled by O.E.M.
 
# dmidecode -t 16
# dmidecode 2.10
SMBIOS 2.3 present.
Handle 0x002B, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Single-bit ECC
        Maximum Capacity: 12 GB
        Error Information Handle: Not Provided
        Number Of Devices: 8



출처 : http://chonnom.com/bbs/board.php?bo_table=B21&wr_id=33

'리눅스' 카테고리의 다른 글

configure 에러  (1) 2015.08.11
swap 메모리  (0) 2015.07.14
도메인을 이용해 사용자 디렉토리 접속 방법  (0) 2015.07.01
make 명령어 옵션  (0) 2015.06.28
awstats 설치  (0) 2015.06.24
Posted by Narusika
,


* DB 로 접속합니다.

#   mysql -uroot -proot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1885 to server version: 5.0.26

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>



* databases 확인

mysql> show databases ;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| db_zb4             |
| db_zb5             |
| mysql              |
| test               |
+--------------------+
5 rows in set (0.07 sec)

mysql>



* 제로보드5 설치 database 접속

mysql> use db_zb5 ;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

mysql>



* 테이블 확인

mysql> show tables ;
+--------------------------+
| Tables_in_db_bbs2        |
+--------------------------+
| zb_analytics             |
| zb_articles              |
| zb_comment               |
| zb_file                  |
| zb_layout_manager        |
| zb_member_level          |
| zb_member_level_manager  |
| zb_member_list           |
| zb_member_mail           |
| zb_member_signup_manager |
| zb_menu_manager          |
| zb_menu_tree             |
| zb_message               |
| zb_module_category       |
| zb_module_manager        |
| zb_page_category         |
| zb_page_manager          |
| zb_page_plugin           |
| zb_plugin_category       |
| zb_plugin_manager        |
| zb_referer_query         |
| zb_report_log            |
| zb_search_keyword        |
| zb_sequence              |
| zb_serial                |
| zb_server_manager        |
| zb_session               |
| zb_session_autologin     |
| zb_site_manager          |
| zb_site_message          |
| zb_survey                |
| zb_survey_item           |
| zb_survey_log            |
| zb_tag                   |
| zb_trackback             |
+--------------------------+
35 rows in set (0.00 sec)

mysql>



*  패스워드를 갖고 있는 zb_member_list 테이블 구조 확인 (Describe)

mysql> desc zb_member_list ;
+-----------------+--------------+------+-----+---------+-------+
| Field           | Type         | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| member_srl      | int(11)      | NO   | PRI |         |       |
| listorder       | int(11)      | NO   | MUL |         |       |
| user_id         | varchar(20)  | NO   | UNI |         |       |
| passwd          | varchar(60)  | NO   |     |         |       |
| user_name       | varchar(20)  | NO   |     |         |       |
| nick_name       | varchar(20)  | NO   | UNI |         |       |
| email_address   | varchar(255) | NO   | UNI |         |       |
| email           | varchar(255) | NO   |     |         |       |
| email_host      | varchar(255) | NO   | MUL |         |       |
| extend_val      | text         | YES  |     | NULL    |       |
| new_message     | int(11)      | NO   |     |         |       |
| point           | int(11)      | NO   |     |         |       |
| allowed         | varchar(2)   | NO   |     | N       |       |
| denied          | varchar(2)   | NO   |     | N       |       |
| mailing         | varchar(2)   | NO   | MUL | N       |       |
| manager_message | text         | NO   |     |         |       |
| regdate         | varchar(14)  | NO   | MUL |         |       |
| last_signin     | varchar(14)  | NO   |     |         |       |
| image_nick      | varchar(255) | NO   |     |         |       |
| image_mark      | varchar(255) | NO   |     |         |       |
| profile_image   | varchar(255) | NO   |     |         |       |
| sign            | text         | NO   |     |         |       |
+-----------------+--------------+------+-----+---------+-------+
22 rows in set (0.02 sec)

mysql>



* admin 계정 관련 기본 정보 확인 (select)

mysql> select user_id, passwd, user_name from zb_member_list ;
+---------+----------------------------------+-----------+
| user_id | passwd                           | user_name |
+---------+----------------------------------+-----------+
| admin   | 890sdfsdfd78fsdfsd89sdf1234mmcaq | admin     |
+---------+----------------------------------+-----------+
1 row in set (0.00 sec)



* admin 계정 패스워드 변경 (초기화) 하기

mysql> update zb_member_list set passwd='21232f297a57a5a743894a0e4a801fc3' where user_id='admin' ;

Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0


위와 같이 패스워드 값을 변경 (초기화) 하면 admin / admin 으로 로그인 할수 있습니다.


(참고로 패스워드 값을 '81dc9bdb52d04dc20036dbd8313ed055' 로 update 하면  admin 패스워드를 1234 로 변경할 수 있습니다.......)




마지막으로 웹 관리자 페이지로 접속하여 패스워드 변경후 사용하시면 됩니다....... 



http://www.wowunix.com/cgi-bin/CrazyWWWBoard.cgi?mode=read&num=22&db=zeroboard&backdepth=1

Posted by Narusika
,

간혹 고객들 중에 “도메인 뒤에 계정이 있는 디렉토리로 연결되게 해주세요” 라는 요청이 있으면 처음 듣는 사람은 엄청 당혹 스럽습니다.

아래의 내용은 이러한 설정 방법에 대한 내용 입니다.

http://IP또는도메인/~계정 // 이렇게 접속하면 /home/계정/ 디렉토리로 접속이 된다.



[root@localhost /]# vi /usr/local/apache/conf/httpd.conf 에서

아래의 내용 주석 삭제

Include conf/extra/httpd-userdir.conf

UserDir /home/


[root@localhost /]# vi /usr/local/apache/conf/extra/httpd-userdir.conf

# Settings for user home directories
#
# Required module: mod_userdir

#
# UserDir: The name of the directory that is appended onto a user’s home
# directory if a ~user request is received.  Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir /public_html/ 을 아래와 같이 수정

UserDir /home/ // 이 설정은 본인의 home/ 즉 웹소스가 있는 경로로 지정을 해준다.

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory “/home/*”> // 변경
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>


[root@localhost /]# /etc/init.d/apachectl restart // 아파치 재시작


http://접속도메인/~들어갈 디렉토리 명/


ex)

[root@localhost youmust]# cd /home/youmust/

[root@localhost youmust]# ll

total 8260
drwxr-xr-x  10 root    root    20480 Jun 18 15:28 ./
drwxr-xr-x.  5 root    root     4096 Apr  7 15:17 ../
-rw-r–r–   1 root    root    17563 Jan 27 20:09 1
drwxr-xr-x   2 youmust users    4096 Mar 12  2014 HomeWork/
drwxr-xr-x   5 youmust users    4096 Jan 23  2014 Maildir/
-rw-r–r–   1 youmust users 1094886 Mar  4  2014 TFT????????????_????????????.pdf
-rw-r–r–   1 youmust users   21356 Nov  7  2014 Windows2008_???????????????_????????????.odt
-rw-r–r–   1 youmust users   34092 May  7  2014 apm_setup_script1.sh
drwxr-xr-x   2 youmust users    4096 May  9  2014 eaccelerator/
drwxr-xr-x  14 root    root     4096 Apr  7 14:50 gnu/
drwx—rwx   4 root    root     4096 Dec 16  2013 mrtg/
-rw-r–r–   1 root    root     3048 Jul  4  2014 mrtg-l.png
-rw-r–r–   1 root    root     3048 Jul  4  2014 mrtg-m.png
-rw-r–r–   1 root    root     3048 Jul  4  2014 mrtg-r.png
drwxr-xr-x   5 root    root     4096 Apr  7 15:20 wordpress/
-rw-r–r–   1 root    root  7159143 Feb 19 08:42 wordpress-4.1.1-ko_KR.zip
drwx—rwx  20 root    root     4096 Jun  4 13:22 xe/
drwxr-xr-x   2 root    root    20480 Dec 27  2013 youmust/
-rw-r–r–   1 youmust users   27986 Mar 11  2014 ??????????????? ??????(0316??????).ods
-rw-r–r–   1 youmust users    1073 Mar 16  2014 ???????????? ??? apm config ??????.txt

http://dbjara.com/~youmust/  —> 로 접속 하면 아래와 같이 내용이 나온다.

선택 영역_001

선택 영역_002

]

출처 :http://idchowto.com/?p=13798

'리눅스' 카테고리의 다른 글

swap 메모리  (0) 2015.07.14
dmidecode 하드웨어 확인 명령어  (0) 2015.07.14
make 명령어 옵션  (0) 2015.06.28
awstats 설치  (0) 2015.06.24
VI 문자열 치환  (0) 2015.06.22
Posted by Narusika
,

php 에러는 /var/log/message에 나타난다.


에러가 없다면 php는 정상적으로 설치된것.


phpinfo.php 파일이 정상적으로 보이지 않고 다운로드가 된다면 


아파치 httpd.conf에 AddType을 확인해 보고, php.ini 에서 short open tag = on 으로 해놓았다면


phpinfo파일에 <? phpinfo(); ?> 까지만 적어주자 <?php phpinfo(); ?> 로 하면 페이지 다운이 된다.

'리눅스 > php' 카테고리의 다른 글

php 에러  (0) 2016.03.10
php-common 설치 오류  (0) 2016.02.17
php imap 설치  (0) 2015.07.20
phpinfo.php  (0) 2015.06.28
Posted by Narusika
,

configure 후  make&make install 시 오류 발생

 

mysql.cc: In function 'void print_table_data(MYSQL_RES*)':

mysql.cc:1650: error: expected primary-expression before '?' token

mysql.cc:1650: error: expected ':' before ')' token

mysql.cc:1650: error: expected primary-expression before ')' token

mysql.cc:1652: error: expected primary-expression before '?' token

mysql.cc:1652: error: expected ':' before ')' token

mysql.cc:1652: error: expected primary-expression before ')' token

mysql.cc:1666: error: expected primary-expression before '?' token

mysql.cc:1666: error: expected ':' before ')' token

mysql.cc:1666: error: expected primary-expression before ')' token

make[1]: *** [mysql.o] Error 1

make[1]: Leaving directory `/usr/local/src/APM_Setup/mysql-4.0.27/client'

make: *** [install-recursive] Error 1

 

이런식으로 뜨면 gcc버전 문제로 설치가 안 된다고 함.

 보통의 경우 gcc 및 g++ 버전이 높아 설치시 에러가 뜨는 것인데

 대처 방법은 우선 호환성 라이브러리 패키지를 설치해주고



[해결방법]

# yum install compat-*

 

gcc와 g++의 이름변경으로 백업후 gcc34, g++34 심볼릭 링크로 gcc,gcc++를 생성해주면된다

# cd /usr/bin

# mv gcc gcc-backup

# mv g++ g++-backup

# ln -s gcc34 gcc

# ln -s g++34 g++

 

설치 후에는 make & make install로 설치 진행




참고 sosnote.com

'리눅스 > mysql' 카테고리의 다른 글

mysql 4.0 설치시 에러  (0) 2015.07.28
mysql 제로보드 패스워드 초기화  (0) 2015.07.09
mysql 실행 시 -bash: mysql: command not found  (0) 2015.06.22
mysql 실행 에러  (0) 2015.06.08
mysql 실행 오류  (0) 2015.05.30
Posted by Narusika
,

phpinfo.php

리눅스/php 2015. 6. 28. 14:32

버전을 낮추거나 높였을때 

phpinfo.php를 웹페이지에서 확인하면 버전 변경이 안되어있는 경우가 있다.



libphp5.so   그때는 이파일을 apache 모듈 폴더에서 확인하자.


'리눅스 > php' 카테고리의 다른 글

php 에러  (0) 2016.03.10
php-common 설치 오류  (0) 2016.02.17
php imap 설치  (0) 2015.07.20
phpinfo.php 다운로드 될때  (0) 2015.06.30
Posted by Narusika
,