1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2004
    Rep Power

    FreeBSD & MySQL configure option

    Is it possible to install MySQL like

    # cd /usr/ports/databases/mysql50-server
    # ./configure --prefix=/usr/local/mysql
    # make install clean

    so that all MySQL files are installed under that "/usr/local/mysql" folder.

    or the only choice is

    # cd /usr/ports/databases/mysql50-server
    # make install clean

    where files are scattered all over in "/usr/local/"

    I checked MySQL.com and I could not find a source code for FreeBSD
    so that I could install MySQL with
    ./configure --prefix=/usr/local/mysql

    All I found was precompiled binaries.

    Thank you.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    If you compile from ports, you're installing per the FreeBSD standards, so you can't set the prefix there.
    Installing everything under a separate directory (/usr/local/mysql) is actually a bit non-standard, so you should have good reasons for doing so. If you do want to go with this approach, you can download the source code from mysql's website in source form:
    and then unzip with tar -zxf option and compile it with the non-standard prefix.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo