LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2012, 02:18 AM   #1
zcmsgk
LQ Newbie
 
Registered: Jan 2011
Location: Hefei, China
Distribution: CentOS 6
Posts: 7

Rep: Reputation: 1
php install sybase_connect


Centos6.0
php5.3.10
Apache/2.2.15
mysql 5.1.61
# uname -r
2.6.32-71.el6.x86_64

I want to install sybase_connect on CentOS 6.0
 
Old 03-29-2012, 02:35 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you want to connect to a Sybase database using PHP, you need a php module named php_sybase or something similar in your distribution.
 
Old 03-29-2012, 08:04 PM   #3
zcmsgk
LQ Newbie
 
Registered: Jan 2011
Location: Hefei, China
Distribution: CentOS 6
Posts: 7

Original Poster
Rep: Reputation: 1
# yum install php-sybase_ct
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* atomic: www6.atomicorp.com
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* rpmforge: fr2.rpmfind.net
* updates: centos.ustc.edu.cn
atomic | 1.9 kB 00:00
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
rpmforge | 1.1 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 2.4 MB 00:13
Setting up Install Process
No package php-sybase_ct available.
Error: Nothing to do
 
Old 04-03-2012, 08:33 PM   #4
zcmsgk
LQ Newbie
 
Registered: Jan 2011
Location: Hefei, China
Distribution: CentOS 6
Posts: 7

Original Poster
Rep: Reputation: 1
Problem has been solved
First install freetds
./configure --prefix=/usr/local/php --with-sybase-ct=/usr/local/freetds --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-config-file-path=/usr/local/php/etc --with-iconv-dir=/usr/local/lib --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-ldap --with-ldap-sasl
Generating files
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+

Thank you for using PHP.

config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating main/php_config.h
config.status: executing default commands



# make ZEND_EXTRA_LIBS=’-liconv’
# make install
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Error: Missing Dependency: php-common, when trying to install php-soap amish123 Linux - Software 3 02-18-2010 07:26 PM
php/shell script to install mysql,apache and php automatically stranger_6_7 Linux - General 2 08-11-2009 02:07 AM
install php post apache install tekmann33 Linux - Newbie 2 10-10-2007 02:09 AM
manually install mysql, php, and apache or install from CD? FiveFlat Linux - Software 5 12-15-2005 01:12 PM
What to type in apt-get install to install mysql PHP libraries sarajevo Debian 1 09-29-2005 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration