Bug #42671 "make install" compile source on linux, error "[install-dist_testDATA] Error 1"
Submitted: 7 Feb 2009 14:20 Modified: 13 Feb 2009 12:33
Reporter: a a Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.31 OS:Linux
Assigned to: CPU Architecture:Any
Tags: compile, error, install, linux, ndb, test

[7 Feb 2009 14:20] a a
Description:
download mysql-5.1.31.tar.gz

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install

error is :
make[4]: *** [install-dist_testDATA] Error 1
make[4]: Leaving directory `/usr/local/mysql-5.1.31/mysql-test/ndb'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/usr/local/mysql-5.1.31/mysql-test/ndb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/mysql-5.1.31/mysql-test'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.1.31'
make: *** [install] Error 2

How to repeat:
download mysql-5.1.31.tar.gz

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install

error is :
make[4]: *** [install-dist_testDATA] Error 1
make[4]: Leaving directory `/usr/local/mysql-5.1.31/mysql-test/ndb'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/usr/local/mysql-5.1.31/mysql-test/ndb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/mysql-5.1.31/mysql-test'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.1.31'
make: *** [install] Error 2
[8 Feb 2009 10:47] Valeriy Kravchuk
Thank you for the problem report. Please, send the results of:

df -k
ls -l /usr/local/
[8 Feb 2009 11:26] a a
debian:/usr/local# df -k
Dosyasistemi         1K-blok        Dolu Boş       Kull%Bağlanılan yer
/dev/hda1              9835552   2895660   6440276  32% /
tmpfs                    63512         0     63512   0% /lib/init/rw
udev                     10240        52     10188   1% /dev
tmpfs                    63512         0     63512   0% /dev/shm
debian:/usr/local# ls -l /usr/local/
toplam 30192
drwxrwsr-x  2 root staff     4096 2009-02-08 02:26 bin
drwxrwsr-x  2 root staff     4096 2009-02-08 02:26 etc
drwxrwsr-x  2 root staff     4096 2009-02-08 02:26 games
drwxrwsr-x  2 root staff     4096 2009-02-08 02:26 include
drwxrwsr-x  3 root staff     4096 2009-02-08 03:58 lib
lrwxrwxrwx  1 root staff        9 2009-02-08 02:26 man -> share/man
drwxrwxrwx 37 7155 uucp      4096 2009-02-08 06:54 mysql-5.1.31
-rw-r--r--  1 root staff 30842205 2009-02-08 05:05 mysql-5.1.31.tar.gz
drwxrwsr-x  2 root staff     4096 2009-02-08 02:26 sbin
drwxrwsr-x 12 root staff     4096 2009-02-08 04:03 share
drwxrwsr-x  2 root staff     4096 2009-02-08 02:26 src
[11 Feb 2009 20:36] a a
i am waiting a answer please.
[12 Feb 2009 9:42] Valeriy Kravchuk
Sorry, but I can not repeat this on my SuSE. Look:

...
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home2/openxs/mysql-5.1.31/win'
make[1]: Leaving directory `/home2/openxs/mysql-5.1.31/win'
openxs@suse:/home2/openxs/mysql-5.1.31> echo $?
0
openxs@suse:/home2/openxs/mysql-5.1.31> fc -l

...

1023     wget -c http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.31.tar.gz/from/http://mysql.infocom...
1024     tar -zxvf mysql-5.1.31.tar.gz
1025     cd mysql-5.1.31/
1026     ./configure --prefix=/home2/openxs/dbs/5.1.31
1027     make  && make install
1028     echo $?
openxs@suse:/home2/openxs/mysql-5.1.31> uname -a
Linux suse 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/Linux
openxs@suse:/home2/openxs/mysql-5.1.31>

Had you tried to build and install as non-root user?
[12 Feb 2009 12:26] a a
Yes I had tried to build and install as non-root user bu error is available :(.
my linux is debian.
[12 Feb 2009 17:13] Sveta Smirnova
Thank you for the feedback.

Please provide output of make --version.
[13 Feb 2009 8:42] Valeriy Kravchuk
Send also the results of uname -a.
[13 Feb 2009 12:31] a a
make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.

This program built for i486-pc-linux-gnu
[13 Feb 2009 12:33] a a
uname -a
Linux debian 2.6.18-6-686 #1 SMP Sat Dec 27 09:31:05 UTC 2008 i686 GNU/Linux
[14 Feb 2009 18:50] Sveta Smirnova
Thank you for the feedback. Please also provide output of  `make -d install`  and `make -p -f /dev/null`