Solved

MySQL installation on FreeBSD problem

Posted on 2010-08-18
6
1,098 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
[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
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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

688 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