Solved

MySQL installation on FreeBSD problem

Posted on 2010-08-18
6
1,090 Views
Last Modified: 2013-11-22
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
Comment
Question by:williamno1
6 Comments
 
LVL 4

Expert Comment

by:KazooSoft
ID: 33469372
Have you tried GNU Make?
0
 

Author Comment

by:williamno1
ID: 33469583
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
 
LVL 62

Expert Comment

by:gheist
ID: 33474374
try ports.
or pkg_add mysql
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 3

Accepted Solution

by:
jodix2002 earned 500 total points
ID: 33474660
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
 
LVL 62

Expert Comment

by:gheist
ID: 33474749
install from sysinstall, do not build yourself
or at least examine port's makefile for options.
0
 

Author Comment

by:williamno1
ID: 33483761
Thanks it's all working fine now jodix2002!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

810 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