LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SlackBuilds Other than Root File System Install (https://www.linuxquestions.org/questions/slackware-14/slackbuilds-other-than-root-file-system-install-4175439700/)

tronayne 12-02-2012 10:37 AM

SlackBuilds Other than Root File System Install
 
OK, I've been looking, reading wiki pages looking for my notes, no joy.

I want to build SlackBuilds to install in, say, /usr/local or in /opt rather than /. I seem to remember that there is a way to do that but dang if I can find it. Would some kind soul please point me in the right direction?

This comes up because MySQL Workbench (which is huge) is occupying too much space and I want it off somewhere else and just can't remember how. Arrgghh!

Thanks.

commandlinegamer 12-02-2012 11:00 AM

You'll need to at least change the target prefix for the configure options, e.g.

Code:

./configure \
  --prefix=/usr/local \


tronayne 12-02-2012 01:24 PM

Well, wasn't I misremembered but... modified to this
Code:

PREFIX=/usr/local
./configure \
  --prefix=${PREFIX} \
  --libdir=${PREFIX}/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=${PREFIX}/man \
  --docdir=${PREFIX}/doc/$PRGNAM-$VERSION \
  --build=$ARCH-slackware-linux \
  --disable-debug \
  --enable-shared=yes \
  --enable-static=no \

and the entire thing is in /usr/local.

Life is good.

Thanks.


All times are GMT -5. The time now is 12:04 AM.