"sudo make" & "sudo make install" ???

Hi there,
Please could someone help me out here..
seems that there are something missing or i'm not using the right commands.
I'm trying to installing some Perl modules on the Apache server and
it seems the "make" command is missing, or perhaps different? If anyone can advise, i'd be really greatful!
Module i have.. but can't seem to get installed.
DBD-mysql-2.1021
DBI-1.58

These pages walk you through it:
http://www.macosxhints.com/article.php?story=20061021211559813
http://www.nntp.perl.org/group/perl.macosx/2001/10/msg896.html
http://www.lehigh.edu/~sol0/Macintosh/X/ptk/
*sudo make install* is the correct syntax (if all correct before that point ...)

Similar Messages

  • When executing the command: "sudo make install" the terminal just hangs

    Hi everyone,
    I'm following along with this tutorial: http://maxpowerindustries.com/2009/09/27/how-to-install-and-configure-squid-on-m ac-os-x/ and I'm on Step 7: Install squid with the following command: sudo make install . After the command executes the terminal just hangs and doesn't return to normal. Any ideas what Im doing wrong?
    Thanks Seán

    I would not be looking at 2009 instructions knowing that current build instructions, release notes, and other information were present, either online, or within the source distribution. In the preceding hyperlink, you will note that build instructions for OS X (any version) are simply omitted. Dependencies are discussed, such as needing the automake tools.
    I would take a closer look at current build requirements (including arguments to ./configure), and build log — as an underlying reason why install hangs in your terminal.

  • [SOLVED]I can build a package with "make install" but not with makepkg

    I'm quite new to Arch and it's my first PKGBUILD.
    I successfully built the software lhapdf http://www.hepforge.org/archive/lhapdf/ … 3.1.tar.gz with the traditional system:
    1) I do a patch for compatibility with gcc 4.3
    cd lhapdf-5.3.1
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    and then
    ./configure --prefix=/usr
    make
    sudo make install
    Then I tried to write a PKGBUILD
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=()
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=() #generate with 'makepkg -g'
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    and it doesn't work. The last lines of the output of makepkg are:
    g++ -march=nocona -O2 -pipe -o .libs/test-lhapdf-ccwrap test-lhapdf-ccwrap.o -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src -lLHAPDFWrap /home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src/.libs/libLHAPDF.so -Wl,--rpath -Wl,/usr/lib
    /usr/bin/ld: cannot find -lLHAPDFWrap
    collect2: ld returned 1 exit status
    make[1]: *** [test-lhapdf-ccwrap] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap'
    make: *** [all-recursive] Error 1
    ==> ERRORE: Compilazione interrotta.
    L'operazione sta per essere interrotta...
    Any idea?
    Last edited by alcafar (2008-04-09 11:03:00)

    Thank you Snowman, it works with options=('!makeflags'). The changes in the paths were not needed, I copied them from /usr/share/pacman/PKGBUILD.proto, probably is some new feature.
    Now, I'd like to post the PKGBUILD to AUR. This is currently my PKGBUILD:
    # Contributor: My name <[email protected]>
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=(gcc-libs)
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=('!makeflags')
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=('df667840071996d2c58a125567be26b2')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    I have the following output from namcap:
    $ namcap lhapdf-5.3.1-1-x86_64.pkg.tar.gz
    lhapdf W: File (usr/lib/libLHAPDFWrap.la) is a libtool file.
    lhapdf W: File (usr/lib/libLHAPDF.la) is a libtool file.
    $ namcap PKGBUILD
    PKGBUILD (lhapdf) W: Missing Maintainer tag
    PKGBUILD (lhapdf) W: Missing CVS Id tag
    and this output from ldd
    $ ldd libLHAPDF.so
    linux-vdso.so.1 => (0x00007fff86dfe000)
    libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00002b70367fe000)
    libm.so.6 => /lib/libm.so.6 (0x00002b7036ace000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b7036d52000)
    libc.so.6 => /lib/libc.so.6 (0x00002b7036f69000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    $ ldd libLHAPDFWrap.so
    linux-vdso.so.1 => (0x00007fffeeffe000)
    libLHAPDF.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b11bbd53000)
    libm.so.6 => /lib/libm.so.6 (0x00002b11bc060000)
    libc.so.6 => /lib/libc.so.6 (0x00002b11bc2e3000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b11bc636000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    What should I add to PKGBUILD?
    The program is in fortran, so I'm surprised that namcap did not add gcc-fortran in the dependencies. Should I add it to depends or makedepends? Or maybe it is included in gcc-libs?

  • "make install" not working

    Whenever i build some program that uses autotools (./configure, make, make install), it compiles fine (after i satisfy dependencies of course) and running make install (as root) succeeds, the program is not available to me. I've tried this with a multitude of programs and i run "sudo ldconfig" after the make install and...nothing, it seems the only way to get these programs to install is to quickly create a PKGBUILD for them, but that's a bit too much work for something i want to test our real quick or something for personal use only. Also, it seems that this does not happen on the one application i tried that uses python and setuptools for build/install.
    Any help would be appreciated.
    JD

    jdhore wrote:that's a bit too much work for something i want to test our real quick or something for personal use only.
    Depends on the user. I'm so used to doing PKGBUILDS at this stage that it's easier for me to do it that way. I find the advantages far outweigh the trivial amount of work involved.
    Each to their own, though.

  • "make install" won't work.

    I was trying to compile faust (a program from sourceforge) using terminal but:
    **************************:~ ************$ cd /Users/************/Desktop/faust-0.9.43/
    **************************:faust-0.9.43 ************$ sudo make install
    Password:
    sudo: make: command not found
    **************************:faust-0.9.43 ************$ make install
    -bash: make: command not found
    **************************:faust-0.9.43 ************$ sh
    sh-3.2$ sudo make install
    Password:
    sudo: make: command not found
    sh-3.2$ make install
    sh: make: command not found
    sh-3.2$ csh
    [**************************:~/Desktop/faust-0.9.43] ************% sudo make install
    sudo: make: command not found
    [**************************:~/Desktop/faust-0.9.43] ************% make install
    make: Command not found.
    [**************************:~/Desktop/faust-0.9.43] ************% ksh
    $ sudo make install
    sudo: make: command not found
    $ make install
    ksh: make: not found
    $

    Do you have xcode installed?
    Did you ever try to build any Sourceforge projects before this one?  I ask that because you don't just "make install" a project.  You need to build it first.  Generally there's a README file which explains the procedure, configure, make, then make install, but some projects do combine these operations.
    Also your shell PATH variable may be set incorrectly and not including /usr/bin where make resides.  Since I always install xcode as part of a initial installation I don't remember if make is supplied there or supplied as part of the standard install.  But it's immaterial since you aren't going to be able to build Sourceforge projects without xcode because xcode definitely includes the compilers, linkers, etc. needed to do a build.
    Finally, IMO, your post probably should have been in the Developer Forums.
    Update:
    Out of curiousity I downloaded faust-0.9.43 from Sourceforge.  It built without any problems.  Somewhat of a strange project since it doesn't include the normal configure step.  Looking at the makefile I found you can define a DESTDIR to make to override it installing into /usr/local which I didn't want just to test this out.  With a configure step you would normally specify a --prefix to configure to accomplish the same thing.

  • Titan Installation: make install expects to find binaries in PATH it just installed

    Steps to reproduce:
    cd ~/3rdPartyApps
    git clone https://github.com/eclipse/titan.core titan
    cd titan
    Add Makefile.personal with this content:
    TTCN3_DIR := /path/to/install/titan/
    OPENSSL_DIR := /usr
    JDKDIR := /etc/java-config-2/current-system-vm
    XMLDIR := /usr
    JNI := yes
    GEN_PDF := no
    Build: make
    Try to install: make install
    This fails with:
    make[2]: Leaving directory '/path/to/install/titan/demo'
    /bin/sh: line 4: ttcn3_start: command not found
    kMakefile:25: recipe for target 'install' failed
    make[1]: *** [install] Error 127
    make[1]: Leaving directory '/home/user/3rdPartyApps/titan/hello'
    Makefile:53: recipe for target 'install' failed
    make: *** [install] Error 2
    Workaround:
    After first failing "make install" add titan/bin to PATH and retry:
    PATH=/path/to/install/titan/bin/:${PATH} make install
    Solution:
    "make install" should use absolute or relative paths to the binaries in "titan/bin".

    Hi Lars,
    I have added a new section to README.linux:
    before
    make install
    some environment variables better be set:
    setenv TTCN3_DIR /path/to/install/titan
    setenv PATH /path/to/install/titan/bin:${PATH}
    setenv LD_LIBRARY_PATH /path/to/install/titan/lib:${LD_LIBRARY_PATH}
    for csh
    or
    export TTCN3_DIR=/path/to/install/titan
    export PATH=/path/to/install/titan/bin/:${PATH}
    export LD_LIBRARY_PATH=/path/to/install/titan/lib:${LD_LIBRARY_PATH}
    for bash
    Best regards
    Elemer

  • How do you replicate `make install` in the package() section

    I've got myself confused in how to package something that uses cmake.
    Here's what I have so far.
    pkgname=gonepass
    pakgver=git
    pkgrel=1
    pkgdesc="A GTK+ 1Password viewer"
    arch=('x86_64' 'i686')
    licence="Apache 2.0"
    url="https://github.com/jbreams/gonepass"
    depends=('gtk3'
    'openssl'
    'jansson'
    'pkg-config'
    'cmake')
    source=("git+https://github.com/jbreams/gonepass")
    sha256sums=('SKIP')
    pkgver() {
    cd gonepass
    git log -n 1 --pretty=format:"%H"
    build() {
    cd ${pkgname%-*}
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/bin ..
    make
    package() {
    make install
    What should I be doing in `package()`.
    P.S. I also need to work out how to do the package versioning properly but one issue at a time

    So the authors PKGBUILD already on the AUR doesn't work. In an attempt to get mine working I've edited it to this:
    pkgname=gonepass-git
    pkgver=r22.0931c63
    pkgrel=1
    pkgdesc='A GTK+ 1Password viewer'
    arch=('x86_64')
    licence=('Apache2')
    url='https://github.com/jbreams/gonepass'
    depends=('gtk3'
    'openssl'
    'jansson')
    makedepends=('cmake')
    source=("git+https://github.com/jbreams/gonepass")
    sha256sums=('SKIP')
    pkgver() {
    cd gonepass
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    build() {
    cd gonepass
    if [ ! -d build ]; then
    mkdir build
    fi
    cd build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
    make
    package() {
    cd gonepass/build
    make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${pkgdir} install
    but still get this "error" on running `makepkg`:
    ==> Starting package()...
    [100%] Built target gonepass
    Install the project...
    -- Install configuration: ""
    -- Installing: /home/jonny/builds/gonepass/pkg/gonepass-git/usr/share/glib-2.0/schemas/gonepassapp.gschema.xml
    -- Compiling GSettings schemas
    Failed to create file '/usr/share/glib-2.0/schemas/gschemas.compiled.0N2WWX': Permission denied
    -- Installing: /home/jonny/builds/gonepass/pkg/gonepass-git/usr/bin/gonepass
    Anyone know how to stop it trying to compile the gsetting scemas?
    EDIT: fixed this by changing to simple make DESTDIR="$pkgdir" install, and adding -DGSETTINGS_COMPILE=OFF to the cmake command.
    Last edited by jonnybarnes (2015-04-08 15:53:54)

  • PLease help!! cannot make install php with oci8 instant client

    Cannot make install :
    Installing PHP SAPI module: cgi
    Installing PHP CGI into: /usr/local/bin/
    Installing PEAR environment: /usr/local/lib/php/
    ld.so.1: php: fatal: libnnz10.so: open failed: No such file or directory
    *** Error code 137
    The following command caused the error:
    /home/dmitriy/install/php-4.4.4/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -dsafe_mode=0 -dmemory_limit=-1 /home/dmitriy/install/php-4.4.4/pear/install-pear.php -d "/usr/local/lib/php" -b "/usr/local/bin" /home/dmitriy/install/php-4.4.4/pear/packages/*.tar
    make: Fatal error: Command failed for target `install-pear-packages'
    Current working directory /home/dmitriy/install/php-4.4.4
    *** Error code 1
    The following command caused the error:
    if /home/dmitriy/install/php-4.4.4/build/shtool mkdir -p /usr/local/lib/php; then \
    make -s install-pear-packages; \
    else \
    cat /home/dmitriy/install/php-4.4.4/pear/install-pear.txt; \
    exit 5; \
    fi
    make: Fatal error: Command failed for target `install-pear'
    LD_LIBRARY_PATH is set where i unziped oracle client instantclient
    debug.log
    CONFIGURE: './configure' '-with-oci8-instant-client=/home/dmitriy/instantclient_10_2'
    CC: gcc
    CFLAGS: -g -O2
    CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    CXX:
    CXXFLAGS:
    INCLUDES: -I/home/dmitriy/instantclient_10_2/sdk/include
    LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/home/dmitriy/instantclient_10_2 -L/home/dmitr
    iy/instantclient_10_2
    LIBS: -lresolv -lm -lnsl -lsocket -lgcc -lclntsh
    DLIBS:
    SAPI: cgi
    PHP_RPATHS: /usr/ucblib /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 /home/dmitriy/instantclient_10_2
    uname -a: SunOS solaris 5.10 Generic_118855-33 i86pc i386 i86pc
    gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/home/d
    mitriy/instantclient_10_2 -L/home/dmitriy/instantclient_10_2 conftest.c -lresolv -lm -lnsl -lsocket -lgcc -lclntsh 1>&5
    ld.so.1: conftest: fatal: libnnz10.so: open failed: No such file or directory

    Please grab the "re-factored" oci8 code from http://pecl.php.net/package/oci8. The version of oci8 distributed with PHP 4 should be avoided. Replace the PHP 4.4 ext/oci8 directory completely with the new package, run buildconf --force and then configure/make etc.  Note the configure option for instant client has changed:
    --with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib
    -- cj

  • When i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    when i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    You are getting a kernel panic because you are trying to boot the computer with a Tiger DVD. That model requires 10.6.3 - Snow Leopard. You can purchase replacement discs from Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • Make, Make install - Command not found. How do I get these commands working

    Hi guys!
    I am trying to compile the php using the command ./configure and make, make install but every time I try to use the comand "make" it says "command not found". Do you know how can I install these bibliotec?
    Thanks in advance.
    Felipe Moreira.

    Hi Felipe, Welcome to Apple's Users Help Users Forums.
    Glad you got it solved.
    Thanks in Apple Forums is through the Stars system. See the blue box at the top of the thread as well as the Apple emails re new posts to the thread.
    With the buttons just to the left of "Reply" for the OP = Original Poster.
    1 Green Solved available. 10 pts.
    2 Gold Helpful available. 5 pts.
    Mark the buttons at the appropriate post. (Not this one. ;~) )
    Joyous Computing, JP

  • `make install` copies to /usr/local/bin

    And /usr/local/bin is apparently not on the default arch $PATH.
    This is odd becauase /usr/local/bin is the $bindir apparently for make by default.

    echo 'export PATH="${PATH}:/usr/local/bin:/usr/local/sbin"' > /etc/profile.d/local-bin.sh && chmod a+x /etc/profile.d/local-bin.sh
    But you really should use a PKGBUILD instead of make install so pacman can keep track of your packages in the system.

  • Sudo port install vsftp  gets - Error: Port vsftp not found

    How can I set the port to see and retrieve "vsftp" ?

    Thank you everyone!  After further reading the MACPORTS GUIDE... I found out the command is NOW different. It is this with a "d" on the end of the command. DUH-huh for deamon
    The new and working command is:  sudo port install vsftpd

  • Should I update OS X 10.6.8 to make install more apps?

    Should I update OS X 10.6.8 to make install more apps?

    That's up to you.  One thing to remember, many Apps are not compatible with 10.7 and later that were before.  See this tip:
    https://discussions.apple.com/docs/DOC-6271

  • Install kernel using "make install"

    There has been some discussion of the proper way to compile a custom kernel for arch lately on the forums. I've been doing some research lately of options of doing this. Also, in the current wiki entry, it mentions not to use make install because it runs lilo. Following I'll outline a differnt way to do it. If others think it is of value, then i'll put it into the wiki.
    add the following script into /sbin/installkernel
    #!/bin/sh
    # Arguments:
    # $1 - kernel version
    # $2 - kernel image file
    # $3 - kernel map file
    # $4 - default install path (blank if root directory)
    # define input variables
    # assume default install path is /boot
    # install_path=$4
    kver=$1
    kimg=$2
    kmap=$3
    vmlinuz=/boot/vmlinuz-$kver
    sysmap=/boot/System.map-$kver
    kconfig=/boot/kconfig-$kver
    # check for previous versions
    if [ -f $vmlinuz ]; then cp $vmlinuz $vmlinuz.old; fi
    if [ -f $sysmap ]; then cp $sysmap $sysmap.old; fi
    if [ -f $kconfig ]; then cp $kconfig $kconfig.old; fi
    # install the image and map files
    cat $kimg > $vmlinuz
    cp $kmap $sysmap
    cp $(dirname "$kmap")/.config $kconfig
    # Check for grub, then lilo
    grub_menu=/boot/grub/menu.lst
    grub_update_conf=/etc/grub-update.conf
    if [ -f $grub_menu ] && [ -f $grub_update_conf ]; then
    source $grub_update_conf
    # don't update it if it already exists
    if [ 0 -eq $(grep -sc "vmlinuz-$kver" $grub_menu) ]; then
    cp $grub_menu $grub_menu.bck
    # off course we'll want the newly compiles one to be the default
    default=$(grep -sc "^title" $grub_menu)
    sed -i "s/^default *[0-9]/default $default/" $grub_menu
    echo >> $grub_menu
    echo "# Autogenerated by kernel $kver" >> $grub_menu
    echo "title linux $kver" >> $grub_menu
    echo "root $grub_root_loc" >> $grub_menu
    echo "kernel $grub_boot_loc/vmlinuz-$kver $kopts" >> $grub_menu
    echo >> $grub_menu
    fi
    elif [ -x /sbin/lilo ]; then
    /sbin/lilo -v
    fi
    Add the following to /etc/grub-update.conf if you use grub. Edit the options for your system.
    # grub boot location
    grub_boot_loc="(hd0,1)"
    # grub root location
    grub_root_loc="(hd0,3)"
    # kernel startup options
    kopts="root=/dev/discs/disc0/part4 ro vga=838"
    1.) extract kernel source in directory that is not /usr/src.
    2.) su - root
    3.) mv /path/to/linux-2.6.x to /usr/src/linux-2.6.x-[custom] where custom is whatever you want to use as an extension, for example I use "-wfd".
    4.) Edit Makefile in 2.6.x-custom. Change EXTRAVERSION= to EXTRAVERSION=[custom]
    6.) optionally copy the /boot/kconfig26 to /usr/src/linux-2.6.x-custom/.config
    7.) make xconfig
    8.) make bzImage
    9.) make modules && make modules_install
    10.) make install
    This will not alter any of the infrastructure for the current working kernel (unless you have a current 2.6.x-[custom] installed). That way if you screwed up the new kernel, you can boot into the previous one. Make install will call the /sbin/installkernel script if it exists, ant not the /path/to/source/linux-2.6.x-[custome]/arch/i386/boot/install.sh script. This script is what updates lilo even if your using grub. Also if you copied the /etc/grup-update.conf, the grub menu will be updated with an entry for your new kernel.
    If you use grub, it is best, IMHO, to uninstall lilo. That way lilo doesn't accidently write over the boot sector if you screwed up the process by putting the installkernel script in the wrong place.
    This process was "loosly" inspired by tools in some debian packages.
    Please let me know what you think.
    -wd

    #!/bin/sh
    # Arguments:
    # $1 - kernel version
    # $2 - kernel image file
    # $3 - kernel map file
    # $4 - default install path (blank if root directory)
    # define input variables
    # assume default install path is /boot
    if [ -z $4 ]; then
    install_path=$4;
    else
    install_path=/boot;
    fi
    kver=$1
    kimg=$2
    kmap=$3
    vmlinuz=$install_path/vmlinuz-$kver
    sysmap=$install_path/System.map-$kver
    kconfig=$install_path/kconfig-$kver
    # check for previous versions
    if [ -f $vmlinuz ]; then cp $vmlinuz $vmlinuz.old; fi
    if [ -f $sysmap ]; then cp $sysmap $sysmap.old; fi
    if [ -f $kconfig ]; then cp $kconfig $kconfig.old; fi
    # install the image and map files
    cat $kimg > $vmlinuz
    cp $kmap $sysmap
    cp $(dirname "$kmap")/.config $kconfig
    # Check for grub, then lilo
    # In the Grub menu you can use two menu entries, one pointing to
    # kernel-newest and one to kernel-previous.
    if [ -d $install_path/grub ]; then
    mv $install_path/kernel-newest $install_path/kernel-previous
    ln -s $vmlinuz $install_path/kernel-newest
    elif [ -x /sbin/lilo ]; then
    /sbin/lilo -v
    fi
    I didn't test it, but it should work. The move will fail if there is no link kernel-newest, but that doesn't really matter.

  • Make install wants to ln -s

    Dear LazyArchWeb
    I'm trying to create a PKGBUILD for this screensaver called Hills http://www.loria.fr/~rougier/software/hills/
    Except when it comes to make install it errors out with a permission denied because it wants to create a link (ln -s -f /usr/bin/hills /usr/libexec/xscreensaver/hills) outside of the /pkg directory....it can't because I'm makepkging as user of course.
    So, my poor fried brain can't figure out how to make it want to create the link inside the /pkg directory. Please help

    (ln -s -f /usr/bin/hills /usr/libexec/xscreensaver/hills) outside of the /pkg
    do it inside!!!
    (ln -s -f $strtdir/pkg/usr/bin/hills /usr/libexec/xscreensaver/hills
    if make is trying to do it then, you may need to run sed on the script, but I would try running the command after make but before make install...

Maybe you are looking for