107a1
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm having some issues compiling MySQL with SSL support enabled.
Using: 7.2-RELEASE FreeBSD (GENERIC kernel) mysql-server-5.1.39 mysql-client-5.1.39 openssl-0.9.8k_5 I've added the following /etc/make.conf Code:
# Always compile MySQL with SSL, Optimized & Statically compiled
.if ${.CURDIR:M*/database/mysql*}
WITH_OPENSSL=yes
BUILD_OPTIMIZED=yes
BUILD_STATIC=yes
.endif
Code:
mysql> show variables like '%ssl%'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | have_openssl | NO | | have_ssl | NO | | ssl_ca | | | ssl_capath | | | ssl_cert | | | ssl_cipher | | | ssl_key | | +---------------+-------+ 7 rows in set (0.00 sec) Code:
# mysql --ssl-ca=cacert.pem mysql: unknown variable 'ssl-ca=cacert.pem' http://dev.mysql.com/doc/refman/5.1/...using-ssl.html It says the following: Quote:
Any suggestions as to what I'm doing wrong. |
|
#2
|
||||
|
||||
|
If I read this bit correctly:
Code:
.if defined(WITH_OPENSSL)
.if !defined(WITHOUT_YASSL)
CONFIGURE_ARGS+=--with-ssl=bundled
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE}
.endif
.endif
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
Admittedly, my knowledge of Makefiles is pretty poor, but surely this bit (my indentation):
Code:
.if defined(WITH_OPENSSL)
.if !defined(WITHOUT_YASSL)
CONFIGURE_ARGS+=--with-ssl=bundled
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE}
.endif
.endif
Am just trying to compile with USE_OPENSSL=yes WITHOUT_YASSL=yesOf course, I may just find that I'm wasting my time doing this
|
|
#4
|
||||
|
||||
|
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#5
|
|||
|
|||
|
Completely forgot to add a follow up.
Quote:
I compiled MySQL using WITH_OPENSSL=yes WITHOUT_YASSL=yes and it did the job perfectly. Unfortunately, when I did a simple make, it didn't appear to use the variables set in /etc/make.conf Code:
# Always compile MySQL with SSL, Optimized & Statically compiled
.if ${.CURDIR:M*/database/mysql*}
WITH_OPENSSL=yes
WITHOUT_YASSL=yes
#BUILD_OPTIMIZED=yes
.endif
Code:
portupgrade -f mysql-server |
|
#6
|
||||
|
||||
|
Quote:
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
oobayly (September 29th, 2009) | ||
|
#7
|
|||
|
|||
|
Quote:
Thanks. Last edited by oobayly; September 29th, 2009 at 20:36. Reason: bad markup |
![]() |
| Tags |
| 7.2, mysql, openssl, ssl |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a SSL certificate | dennylin93 | Web & Network Services | 5 | May 13th, 2010 17:26 |
| FreeNAS mysql problem - mysql.sock not found | kalns | Web & Network Services | 10 | September 25th, 2009 17:46 |
| [Solved] SSL Credential Error? | anthony911 | Web & Network Services | 3 | September 2nd, 2009 18:41 |
| Question about SSL | anthony911 | Web & Network Services | 6 | August 11th, 2009 22:02 |
| pidgin, msn and ssl | Roberth | Installation and Maintenance of FreeBSD Ports or Packages | 3 | March 31st, 2009 08:14 |