Solved Problem with installing MySQL 5.6 server

Hi community.
I'm trying to install MySQL 5.6 server, but I stuck in this.
Can anybody help mě to solve this problem?
Thanks you.

Code:
root@ChyuProject:/usr/ports/databases/mysql56-server # make BUILD_OPTIMIZED=yes BUILD_STATIC=yes
===>   mysql56-server-5.6.26 depends on file: /usr/local/bin/cmake - not found
===>   cmake-3.3.1 depends on executable: sphinx-build - found
===>   cmake-3.3.1 depends on shared library: libcurl.so - not found
===>   curl-7.44.0 depends on file: /usr/local/bin/perl5.20.2 - found
===>  Configuring for curl-7.44.0
configure: loading site script /usr/ports/Templates/config.site
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
      ;;
    *
no
checking for path separator... :
checking for sed... (cached) /usr/bin/sed
checking for grep... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ar... /usr/bin/ar
configure: using LIBS: -lgssapi -lgssapi_krb5 -lheimntlm -lkrb5 -lhx509  -lcom_err -lcrypto -lasn1 -lwind -lheimbase -lroken  -lcrypt -pthread -lgssapi -lgssapi_krb5 -lheimntlm -lkrb5 -lhx509  -lcom_err -lcrypto -lasn1 -lwind -lheimbase -lroken  -lcrypt -pthread
configure: LIBS note: LIBS should only be used to specify libraries (-lname).
configure: using CFLAGS: -I/usr/include -O2 -pipe -fstack-protector -fno-strict-aliasing
configure: CFLAGS note: CFLAGS should only be used to specify C compiler flags, not include directories. Use CPPFLAGS for: -I/usr/include
configure: WARNING: Continuing even with errors mentioned immediately above this line.
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... cc
checking whether the C compiler works... no
configure: error: in `/usr/ports/ftp/curl/work/curl-7.44.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the
"/usr/ports/ftp/curl/work/curl-7.44.0/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/ftp/curl.
*** [install] Error code 1

Stop in /usr/ports/ftp/curl.
*** [lib-depends] Error code 1

Stop in /usr/ports/devel/cmake.
*** [install] Error code 1

Stop in /usr/ports/devel/cmake.
*** [build-depends] Error code 1

Stop in /usr/ports/databases/mysql56-server.
root@ChyuProject:/usr/ports/databases/mysql56-server #
 
C compiler cannot create executables
.
With which compiler you try it? Are the pathes to the compiler right? Which FreeBSD version and which platform please.

Try without BUILD_OPTIMIZED=yes.
 
talsamon I don't know what compiler Im using. Where can I find pathes to the compiler?
Im using FreeBSD 9.3 64-bit.
Still same error when I use command without BUILD_OPTIMIZED=yes.

SirDice I don't have this file.

I'm a little noob new in FreeBSD, so be patient please.
 
I guess you changed nothing, compiler should be per default clang.
Send the output of:
echo $PATH,
clang --version,
which clang.

And run pkg_libchk .- if libraries are missing (if you have it not installed sysutils/bsdadminscripts).
If it is a fresh install, run freebsd-update fetch and freebsd-update install. portsnap fetch update and portmaster -a.
( portmaster must be installed ports-mgmt/portmaster). The iso is always older than the actual ports-tree.
 
Code:
[CMD=%]echo $PATH[/CMD]
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin

Code:
[CMD=%]clang --version[/CMD]
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd9.3
Thread model: posix

Code:
[CMD=%]which clang[/CMD]
/usr/bin/clang

What with pkg_libchk?
 
Well..how to do it? :D
Code:
root@ChyuProject:~ # pkg_libchk -a
pkg_libchk: Command not found.
root@ChyuProject:~ # pkg_libchk -all
pkg_libchk: Command not found.
root@ChyuProject:~ # pkg_libchk -a --all
pkg_libchk: Command not found.
root@ChyuProject:~ # pkg_libchk --all
pkg_libchk: Command not found.
root@ChyuProject:~ # pkg_libchk
pkg_libchk: Command not found.
root@ChyuProject:~ #
 
Use a clean FreeBSD and :
pkg update
pkg install mysql56-server
 
Last edited by a moderator:
Code:
root@vps39506:~ # pkg install mysql56-server
Updating FreeBSD repository catalogue...
pkg: An error occured while fetching package
pkg: An error occured while fetching package
repository FreeBSD has no meta file, using default settings
pkg: An error occured while fetching package
pkg: An error occured while fetching package
Unable to update repository FreeBSD
Error updating repositories!
root@vps39506:~ #
root@vps39506:~ # apt update
apt: Command not found.
root@vps39506:~ # sudo apt upgrade
sudo: Command not found.
root@vps39506:~ #
root@vps39506:~ # pkg update
Updating FreeBSD repository catalogue...
pkg: An error occured while fetching package
pkg: An error occured while fetching package
repository FreeBSD has no meta file, using default settings
pkg: An error occured while fetching package
pkg: An error occured while fetching package
Unable to update repository FreeBSD
Error updating repositories!
I'm using FreeBSD 12
 
FreeBSD 12 has been End-of-life since December 2023. MySQL 5.6 has been End-of-life since February 2021.

This thread has been dead for almost 10 years.
 
Install a supported version. That's FreeBSD 13.4 or 14.2 and MySQL 8.0 at this time.
 
Back
Top