Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cannot compile postfix on Centos 6.3 , - lmysqlclinet is missing.

Posted on 2014-12-23
8
Medium Priority
?
190 Views
Last Modified: 2014-12-23
I have Centos 6.3
I have the following mysql packages installed:
# rpm -qa|grep mysql
mysql-5.1.73-3.el6_5.x86_64
dovecot-mysql-2.0.9-7.el6.x86_64
php-mysql-5.3.3-27.el6_5.x86_64
mysql-server-5.1.73-3.el6_5.x86_64
mysql-devel-5.1.73-3.el6_5.x86_64
mysql-libs-5.1.73-3.el6_5.x86_64



I am trying to compile postfix with mysql support, and I am using the following command:
make -f Makefile.init makefiles \
CCARGS='-DNO_NIS \
-DUSE_TLS -I/usr/include \
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
-DDEF_SERVER_SASL_TYPE="dovecot" \
-DHAS_PCRE -I/usr/include/  \
-DHAS_SSL  -I/usr/include/openssl \
-DHAS_MYSQL -I/usr/include/mysql' \
AUXLIBS='-L/usr/lib64/ -lssl -lcrypto -L/usr/lib64/sasl2 -lsasl2 \
-L/usr/lib64/ -lpcre -L/usr/lib/mysql/ -lmysqlclient -lz -lm'

But it is complaining from missing -lmysqlclient which is not existing from where I can get it?
0
Comment
Question by:Ashraf Hassanein
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40515447
yum install msyql5-devel

Open in new window

0
 

Author Comment

by:Ashraf Hassanein
ID: 40515454
It cannot find this package:
# yum install mysql5-devel
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * base: centos.mia.host-engine.com
 * centosplus: mirrors.lga7.us.voxel.net
 * epel: www.gtlib.gatech.edu
 * extras: repo.atlantic.net
 * updates: mirrors.chkhosting.com
Setting up Install Process
No package mysql5-devel available.
Error: Nothing to do
0
 
LVL 2

Expert Comment

by:hexo dark
ID: 40515464
yum install  mysql-devel.x86_64

Open in new window


or try  
yum install Percona-Server-devel-55

Open in new window

souce serverfault.com/questions/601162/cant-install-mysql-devel-on-centos-6-5
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:Ashraf Hassanein
ID: 40515494
It is already there:-(
# yum install mysql-devel.x86_64
Loaded plugins: fastestmirror, priorities, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mia.host-engine.com
 * centosplus: mirrors.lga7.us.voxel.net
 * epel: www.gtlib.gatech.edu
 * extras: repo.atlantic.net
 * updates: mirrors.chkhosting.com
Package mysql-devel-5.1.73-3.el6_5.x86_64 already installed and latest version
Nothing to do
0
 
LVL 2

Expert Comment

by:hexo dark
ID: 40515497
I am not sure try this
yum install Percona-Server-devel-55

Open in new window

souce serverfault.com/questions/601162/cant-install-mysql-devel-on-centos-6-5
0
 

Author Comment

by:Ashraf Hassanein
ID: 40515510
This package does not exist, at which repo?
]# yum install Percona-Server-devel-55
Loaded plugins: fastestmirror, priorities, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mia.host-engine.com
 * centosplus: mirrors.lga7.us.voxel.net
 * epel: www.gtlib.gatech.edu
 * extras: repo.atlantic.net
 * updates: mirrors.chkhosting.com
No package Percona-Server-devel-55 available.
Error: Nothing to do
0
 
LVL 2

Accepted Solution

by:
hexo dark earned 2000 total points
ID: 40515519
is my final gest

yum install cyrus-sasl cyrus-sasl-devel openssl openssl-devel pcre pcre-devel openldap openldap-devel db4-devel

Open in new window

0
 

Author Comment

by:Ashraf Hassanein
ID: 40515529
Yes it worked thanks :-)
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question