• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1107
  • Last Modified:

MySQL installation on FreeBSD problem

Hi there, I've been trying to install MySQL5.1 on my FreeBSD 8-Release server.

I got the latest source from MySQL's website and downloaded+extracted it to "/usr/local/mysql". I ran "make -j2" which ran fine however when I try to execute "make install" I receive this error:

Making install in include
make  install-am
test -z "/usr/local/mysql/include/mysql" || .././install-sh -c -d "/usr/local/mysql/include/mysql"
 /usr/bin/install -c -m 644 'mysql.h' '/usr/local/mysql/include/mysql/mysql.h'
 /usr/bin/install -c -m 644 'mysql_com.h' '/usr/local/mysql/include/mysql/mysql_com.h'
 /usr/bin/install -c -m 644 'mysql_time.h' '/usr/local/mysql/include/mysql/mysql_time.h'
 /usr/bin/install -c -m 644 'my_list.h' '/usr/local/mysql/include/mysql/my_list.h'
 /usr/bin/install -c -m 644 'my_alloc.h' '/usr/local/mysql/include/mysql/my_alloc.h'
 /usr/bin/install -c -m 644 'typelib.h' '/usr/local/mysql/include/mysql/typelib.h'
 /usr/bin/install -c -m 644 'mysql/plugin.h' '/usr/local/mysql/include/mysql/plugin.h'
install: mysql/plugin.h and /usr/local/mysql/include/mysql/plugin.h are the same file
*** Error code 64

Stop in /usr/local/mysql/include.
*** Error code 1

Stop in /usr/local/mysql/include.
*** Error code 1

Stop in /usr/local/mysql/include.
*** Error code 1

Stop in /usr/local/mysql.

Open in new window


Can someone help me out with this?

Thanks,
Will
0
williamno1
Asked:
williamno1
1 Solution
 
KazooSoftCommented:
Have you tried GNU Make?
0
 
williamno1Author Commented:
When I use "gmake install" I receive this error:

libtool: install: /usr/bin/install -c my_safe_process /usr/local/mysql/mysql-test/lib/My/SafeProcess/my_safe_process
install: my_safe_process and /usr/local/mysql/mysql-test/lib/My/SafeProcess/my_safe_process are the same file
gmake[3]: *** [install-safePROGRAMS] Error 1
gmake[3]: Leaving directory `/usr/local/mysql/mysql-test/lib/My/SafeProcess'
gmake[2]: *** [install-am] Error 2
gmake[2]: Leaving directory `/usr/local/mysql/mysql-test/lib/My/SafeProcess'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/mysql/mysql-test'
gmake: *** [install-recursive] Error 1
0
 
gheistCommented:
try ports.
or pkg_add mysql
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
jodix2002Commented:
maybe you can try this:
- put the source in another directory, say, /usr/src/mysql
- remove everything in /usr/local/mysql
- then run the installation again from /usr/src/mysql
0
 
gheistCommented:
install from sysinstall, do not build yourself
or at least examine port's makefile for options.
0
 
williamno1Author Commented:
Thanks it's all working fine now jodix2002!
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now