The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Make errors with MYSQL and php
Author: Hagar 
Date:   18-02-01 20:37

I realy want to fall in love with UNIX, but everything I do seems to come back and bite me! I am sure most of it is just lack of understanding but, I beleive you have to get a package installed and working before you can start to learn! Here is my latest problem.

charlie# cd mysql322-server
charlie# make

Using native FreeBSD threads (libc_r).

You may set MIT_PTHREADS (make MIT_PTHREADS=yes)
to compile mysql with the supplied mit-pthreads.
(You don't want to set this unless you have a good reason).

===> Extracting for mysql-server-3.22.32
>> Checksum mismatch for mysql-3.22.32.tar.gz.
Make sure the Makefile and distinfo file (/usr/ports/databases/mysql322-server/d
istinfo)
are up to date. If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** Error code 1

Stop in /usr/ports/databases/mysql322-server.
*** Error code 1

Stop in /usr/ports/databases/mysql322-server.
*** Error code 1

Stop in /usr/ports/databases/mysql322-server.
*** Error code 1

Stop in /usr/ports/databases/mysql322-server.
*** Error code 1

Stop in /usr/ports/databases/mysql322-server.
*** Error code 1

Stop in /usr/ports/databases/mysql322-server.
charlie# 010218 11:32:55 mysqld ended

charlie#

I initially installed the ports using sysinstall and then 'tar xzvf /cdrom/ports/ports.tgz' so hopefully the source is fine.

Oh the distribution is...

charlie# uname -a
FreeBSD charlie.mrhagar.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Thu Feb 15 20:17:18 MST 2001 root@charlie.mrhagar.com:/usr/src/sys/compile/CHARLIE i386

Any suggestions please,

Yours,

Hagar

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: AC 
Date:   18-02-01 20:48

i'm a newbie to freebsd, see the post below. but i had the same problem when compiling xmms. i accounted it to the fact that my /usr partition was out of space! check that with the 'df -h' command. i kinda hope that is the problem because if it isn't then i have the exact same problem except with a totally different app!

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: AC 
Date:   18-02-01 20:48

i'm a newbie to freebsd, see the post below. but i had the same problem when compiling xmms. i accounted it to the fact that my /usr partition was out of space! check that with the 'df -h' command. i kinda hope that is the problem because if it isn't then i have the exact same problem except with a totally different app!

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: Hagar 
Date:   18-02-01 20:58

charlie# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 97M 33M 56M 37% /
/dev/da0s1g 4.5G 401M 3.8G 9% /data
/dev/da0s1f 3.3G 436M 2.6G 14% /usr
/dev/da0s1e 124M 824K 113M 1% /var
procfs 4.0K 4.0K 0B 100% /proc
/dev/acd0c 637M 637M 0B 100% /cdrom


So not that!

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: AC 
Date:   18-02-01 21:07

well crap then why was i getting those same "error 1" things that you were getting??

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: Hagar 
Date:   18-02-01 21:21

AC wrote:
>
> well crap then why was i getting those same "error 1" things
> that you were getting??

I do not know, to be honest I do not understand alot of things about UNIX..that is why I am trying to learn! The big question at the moment is what does 'make' actually do?

Also where do some of the port directories come from? For example,

charlie# pwd
/cdrom/packages/databases
charlie# ls my*
mysql++-1.7.tgz mysql-navigator-0.3.2.tgz
mysql-client-3.22.32.tgz mytop-0.3.tgz
mysql-client-3.23.26.tgz
charlie#

Where is the mysql322-server?

Confused,

Hagar

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: AC 
Date:   18-02-01 21:28

i don't know about the server, but i do know what 'make' does

whenever you compile source code, every file has to be read into the compiler and a lot of the time they have to be read in at a certain order. all 'make' does is read a Makefile which is big list of compiler commands. so by using make and makefiles we can compile softeware with one command instead of 10,000 single commands issued to the compiler itself.

have you checked out the freebsd handbook? it might help answer some of your questions

Reply To This Message
 
 Re: Make errors with MYSQL and php
Author: Dan Langille 
Date:   19-02-01 02:02

This is the problem:

">> Checksum mismatch for mysql-3.22.32.tar.gz.
Make sure the Makefile and distinfo file (/usr/ports/databases/mysql322-server/d
istinfo)"


The first thing a port does is download the port tarball to /usr/ports/distfiles. In this case, it's mysql-3.22.32.tar.gz. Then it "checks" the file for any corruption. In this case, it's found a problem. I suggest you delete that file and try again. if the problem persists, then delete the file [again], and remove /usr/ports/databases/mysql322-server, and cvsup your ports.

The delete is a bit extreme, but it will ensure you have the latest version of the port.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org