Re: Unix binary installations somewhere other than in /usr/local

2002-01-29 Thread John Murdie

On 28 Jan, Paul DuBois wrote:
On 28 Jan John A. Murdie wrote:
I decided that it was probably simpler just to build from source - I'm
on a Solaris 2.8 system - and so it proved to be. I was careful to use
the recommended configure options.

I found that I had to build in the installation directory - `make
install' didn't copy the `scripts' sub-directory to the installation
directory, for instance, when (in my first attempt) I unpacked the
source in one directory (the build directory) and configured for another
(the installation directory). For my second and successful build I made
the build and installation directories the same. I can't find, however,
any documentation of a command to clean the build files (e.g.
`configure', `INSTALL-SOURCE' etc.) from the build/installation
directory. Is there a `make tidy' or something similar? (`make clean'
looks as if it would delete the executables!)
 
 make distclean removes the most stuff.
 

Rather too much, I'm afraid - the executables and libraries too. What
baffles me is that `make install' doesn't install the `scripts'
directory (and probably other necessary files), so it appears that you
have to build in the final installation directory (which is not
conventional under Unix - I build other programs under /tmp and then do
`make install'). When you build in the installation directory you have a
lot of build materials left in your installation when it's done. It does
no harm, of course, but I'd like to tidy up. (All I can think of is to
remove files that are not present in a binary distribution - using a
script which calls comm(1) perhaps.)

I've scoured the `INSTALL-SOURCE' document, and can find no mention of
this nuisance.
-- 

John A. Murdie
Experimental Officer (Software)
Department of Computer Science
University of York
England


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Unix binary installations somewhere other than in /usr/local

2002-01-28 Thread John Murdie

On 26 Jan, To: [EMAIL PROTECTED] wrote:
 I'd like to see an explicit statement that it is possible to install a
 binary distribution of MySQL in some non-standard place, or not, as the
 case might be. If it *is* possible, I'd like to see full instructions
 for doing this.

Thanks to the two people who sent me a reply: Jeremy Zawodny and Paul
DuBois. Jeremy thought it was possible without a /usr/local/mysql link,
and I recall (I subsequently lost his E-mail by accident) Paul thought
it was not. (I hope that I've not misrepresented either of you - please
correct me if I have!)

I decided that it was probably simpler just to build from source - I'm
on a Solaris 2.8 system - and so it proved to be. I was careful to use
the recommended configure options.

I found that I had to build in the installation directory - `make
install' didn't copy the `scripts' sub-directory to the installation
directory, for instance, when (in my first attempt) I unpacked the
source in one directory (the build directory) and configured for another
(the installation directory). For my second and successful build I made
the build and installation directories the same. I can't find, however,
any documentation of a command to clean the build files (e.g.
`configure', `INSTALL-SOURCE' etc.) from the build/installation
directory. Is there a `make tidy' or something similar? (`make clean'
looks as if it would delete the executables!)

-- 

John A. Murdie
Experimental Officer (Software)
Department of Computer Science
University of York
England


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Unix binary installations somewhere other than in /usr/local

2002-01-28 Thread Paul DuBois

At 20:51 + 1/28/02, John Murdie wrote:
On 26 Jan, To: [EMAIL PROTECTED] wrote:
  I'd like to see an explicit statement that it is possible to install a
  binary distribution of MySQL in some non-standard place, or not, as the
  case might be. If it *is* possible, I'd like to see full instructions
  for doing this.

Thanks to the two people who sent me a reply: Jeremy Zawodny and Paul
DuBois. Jeremy thought it was possible without a /usr/local/mysql link,
and I recall (I subsequently lost his E-mail by accident) Paul thought
it was not. (I hope that I've not misrepresented either of you - please
correct me if I have!)

I'm not sure I said that it *wasn't*, but I did say that I think it's better
to just build from source if you want to put the database somewhere other
than it was built to go by default.

In any case, Jeremy said that he installs distributions all the time other
than in the default location, so clearly that provides the empirical evidence
that it's possible.

I'd still rather build from source, though. :-)


I decided that it was probably simpler just to build from source - I'm
on a Solaris 2.8 system - and so it proved to be. I was careful to use
the recommended configure options.

I found that I had to build in the installation directory - `make
install' didn't copy the `scripts' sub-directory to the installation
directory, for instance, when (in my first attempt) I unpacked the
source in one directory (the build directory) and configured for another
(the installation directory). For my second and successful build I made
the build and installation directories the same. I can't find, however,
any documentation of a command to clean the build files (e.g.
`configure', `INSTALL-SOURCE' etc.) from the build/installation
directory. Is there a `make tidy' or something similar? (`make clean'
looks as if it would delete the executables!)

make distclean removes the most stuff.


--

John A. Murdie
Experimental Officer (Software)
Department of Computer Science
University of York
England



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Unix binary installations somewhere other than in /usr/local

2002-01-26 Thread Jeremy Zawodny

On Sat, Jan 26, 2002 at 07:53:35PM +, John Murdie wrote:

 I'd like to see an explicit statement that it is possible to install
 a binary distribution of MySQL in some non-standard place, or not,
 as the case might be. If it *is* possible, I'd like to see full
 instructions for doing this.

It is.  I do it all the time.  Our servers run MySQL installed in
/home/mysql rather than /usr/local, or /opt.

It's been a while since I did a fresh install, but I don't remember
having to really jump thru many hoops.

  cd /home
  tar -zxvf /tmp/mysql-binary-version.tar.gz
  ln -s mysql-binary-version mysql
  cd mysql
  setup the db as described in the install docs

Have you tried something like that?  If so, what doesn't work?

Jeremy
-- 
Jeremy D. Zawodny, [EMAIL PROTECTED]
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 23 days, processed 538,584,314 queries (261/sec. avg)

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php