Compiling and Installing Compiled Kernel

Hi everyone, today i followed the "Kernel Compilation From Source" (https://wiki.archlinux.org/index.php/Ke … rom_Source) ArchWiki to compile a kernel downloaded from kernel.org. And i use the second method to compile and install with makepkg.
When the compilation is done, it can't be installed because the name of the file.
I know i must specify a new name for the new linux image and the System.map to have two or more kernels installed. But "where" in the PKGBUILD i must change the name of the files???
I'm using the PKGBUILD from the wiki:
pkgname=kernel26-my
basekernel=2.6.32.8
pkgver=2.6.32.8
pkgrel=1
pkgdesc="The Linux Kernel and modules"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.kernel.org"
depends=('module-init-tools' 'mkinitcpio')
provides=(kernel26)
install=kernel26.install
build() {
LOCAL_VERSION="$(grep "CONFIG_LOCALVERSION=" $startdir/.config | sed 's/.*"\(.*\)"/\1/')"
cd ..
make || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
# There's no separation of firmware depending on kernel version -
# comment this line if you intend on using the built kernel exclusively,
# otherwise there'll be file conflicts with the existing kernel
rm -rf $startdir/pkg/lib/firmware
install -Dm644 "System.map" "$startdir/pkg/boot/System.map26$LOCAL_VERSION"
install -Dm644 "arch/x86/boot/bzImage" "$startdir/pkg/boot/vmlinuz26$LOCAL_VERSION"
# Change the version strings in kernel26.install
sed -i \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=\"$basekernel\"/" \
-e "s/LOCAL_VERSION=.*/LOCAL_VERSION=\"$LOCAL_VERSION\"/" \
$startdir/kernel26.install
And also the kernel26.install
KERNEL_VERSION="2.6.32.8"
LOCAL_VERSION="-MINE"
post_install () {
echo ">>> Updating module dependencies..."
/sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
echo ">>> Creating initial ramdisk..."
mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g "/boot/kernel26${LOCAL_VERSION}.img"
post_upgrade() {
echo ">>> Updating module dependencies..."
/sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
echo ">>> Creating initial ramdisk..."
mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g "/boot/kernel26${LOCAL_VERSION}.img"
Thanks in advance.
Last edited by Hyugga (2010-11-11 02:48:14)

When installing the kernel there is some problem when the "mkinitcpio" is running: sd_mod error.
I can install and boot the kernel afterwards but when i get to kdm, the keyboard and the touchpad/mouse doesn't work.
I double checked the .config file and i have enabled the keyboard and the mouse options.
What can i do?
Thanks...

Similar Messages

  • Compiling and installing Tux On Ice, need a little help

    I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice
    I downloaded from the AUR the kernel26-ice 2.6.38-4 to compile and install.  I managed to compile it (I think ... correctly I hope) but every time I try to get it installed with "mkinitcpio -p kernel26-ice.preset" the build fails with these errors:
    [root@blackyunzi ~]# mkinitcpio -p kernel26-ice
    /etc/mkinitcpio.d/kernel26-ice.preset: line 5: /etc/mkinitcpio.d/kernel26-ice.kver: No such file or directory
    ==> Building image from preset: 'default'
    ==> WARNING: No kernel version specified. Skipping image `default'
    ==> Building image from preset: 'fallback'
    ==> WARNING: No kernel version specified. Skipping image `fallback'
    [root@blackyunzi ~]# cd ~heather/aur_builds/kernel26-ice/kernel26-ice/
    I have tried to CD into the build directory just to make sure I was using the correct file but that has not helped.  I've never compiled my own kernel before today and I'm stymied as to what I'm doing wrong.  If it matters, I compiled it as a regular user in the folder where I downloaded it to.  The contents of my build directory:
    [heather@blackyunzi kernel26-ice]$ ls -al kernel26-ice
    total 117308
    drwxr-xr-x 2 heather heather 4096 Jul 27 19:52 .
    drwxr-xr-x 3 heather heather 4096 Jul 27 19:08 ..
    -rw-r--r-- 1 heather heather 236395 Apr 21 05:12 2.6.38.3-sched-bfs-401.patch
    -rw-r--r-- 1 heather heather 125982 May 20 18:27 config
    -rw-r--r-- 1 heather heather 120300 May 20 18:27 config.x86_64
    -rw-r--r-- 1 heather heather 40977284 Jul 27 19:47 kernel26-ice-2.6.38-4-x86_64.pkg.tar.xz
    -rw-r--r-- 1 heather heather 665 Jul 27 19:45 kernel26-ice.install
    -rw-r--r-- 1 heather heather 3111082 Jul 27 20:01 kernel26-ice.preset
    -rw-r--r-- 1 heather heather 74739098 Mar 14 19:40 linux-2.6.38.tar.bz2
    -rw-r--r-- 1 heather heather 186457 Jun 2 19:36 patch-2.6.38.8.bz2
    -rw-r--r-- 1 heather heather 12794 Jun 7 02:14 PKGBUILD
    -rw-r--r-- 1 heather heather 451933 Apr 3 15:36 reiser4-for-2.6.38.patch.bz2
    -rw-r--r-- 1 heather heather 129795 May 4 18:30 tuxonice-3.2-for-2.6.38.patch.bz2
    [heather@blackyunzi kernel26-ice]$
    The makepkg file shows that I only changed one setting, the "-j4" bit:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    ## While using the kernel26-ice build CK recommends you ONLY compile this kernel
    ## with the same number as how many cpu's you have.
    ## quoting his example: IE you should ONLY do make -j4 on quad core, -j2 on dual core and so on.
    MAKEFLAGS="-j4"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    BUILDENV=(fakeroot !distcc color !ccache check)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Mkinitcpio shows, after stripping out the comments:
    MODULES=""
    FILES=""
    HOOKS="base udev autodetect usbinput pata scsi sata lvm2 filesystems consolefont"
    (no compression options)
    Finally, I put the kern26-ice.preset into the /etc/mkinitcpio folder and tried to install it from there but again I met failure.
    Apologies for the length but I'm getting frustrated with this issue.
    Last edited by MoonSwan (2011-07-28 02:40:58)

    MoonSwan wrote:I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice
    I downloaded from the AUR the kernel26-ice 2.6.38-4 to compile and install.
    Hm... netbook.
    If you don't mind trying bfs and bfq too, then you could give the pf-kernel that is mentioned in the wiki too a try:
    http://aur.archlinux.org/packages.php?ID=50956
    It has a repository here:
    [pfkernel]
    Server = http://dl.dropbox.com/u/11734958/$arch
    and a thread: https://bbs.archlinux.org/viewtopic.php?id=103462
    I'm not quite sure how netbook performance is affected by BFS...
    It has the bonus to already be based on 3.0.
    Last edited by Cdh (2011-07-28 20:35:50)

  • Consistent annoying problem when compiling and installing Apache modules.

    Every time I build and install mod_jk for Apache (Since binaries are no longer available for Apache 1.3.x on Mac OS X, we have to build it ourselves.), everything goes smoothly until the final 'sudo make install,' and then it finishes with:
    Libraries have been installed in:
    /usr/libexec
    Which is nice, but they're supposed to be installed in /usr/libexec/httpd in Mac OS X. (I don't know if this is a problem for Mac OS X Server too, but I'm using regular old Mac OS X 10.4.10, so I'm posting this here.)
    I'm using this when I call configure:
    % ./configure --with-apxs=/usr/sbin/apxs
    and /usr/sbin/apxs says:
    my $CFG_LIBEXECDIR = q(/usr/libexec/httpd);
    but the resulting Makefile says:
    libexecdir=${APACHE_DIR}/libexec
    So it appears to be ignoring the definition from apxs. It also appears that the definition of libexecdir appears to be variable only up until libexec. It looks like you can't tell it to use a subdirectory.
    It's easy enough to just move the installed files into the httpd directory, with sudo mv /usr/libexec/mod_jk.* usr/libexec/httpd, but it's a little annoying to have to remember to do this every time I upgrade mod_jk.
    Has anybody else run into this with this or other modules? Is it a bug that should be reported to either Apple or Apache? Does anybody have a better solution than moving the files?

    MoonSwan wrote:I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice
    I downloaded from the AUR the kernel26-ice 2.6.38-4 to compile and install.
    Hm... netbook.
    If you don't mind trying bfs and bfq too, then you could give the pf-kernel that is mentioned in the wiki too a try:
    http://aur.archlinux.org/packages.php?ID=50956
    It has a repository here:
    [pfkernel]
    Server = http://dl.dropbox.com/u/11734958/$arch
    and a thread: https://bbs.archlinux.org/viewtopic.php?id=103462
    I'm not quite sure how netbook performance is affected by BFS...
    It has the bonus to already be based on 3.0.
    Last edited by Cdh (2011-07-28 20:35:50)

  • Compiling and installing the AUR Blacs-mpi package

    I'm trying to install blacs-mpi (dependance for mumps) and have run into the following issue:
    make[1]: Leaving directory `/usr/local/src/blacs-mpi/src/BLACS/TESTING'
    libblacs.a(BI_BlacsErr.o): In function `BI_BlacsErr':
    BI_BlacsErr.c:(.text+0x138): undefined reference to `__stack_chk_fail_local'
    libblacs.a(BI_BlacsWarn.o): In function `BI_BlacsWarn':
    BI_BlacsWarn.c:(.text+0x128): undefined reference to `__stack_chk_fail_local'
    ==> ERROR: A failure occurred in build().
    Aborting...
    If my understanding is correct, this is a run-time stack overflow verification error and is possibly occurring because blacs-mpi is pointing to some non-existent library. However, I have no idea what library this could be (or if I'm right).
    Can anyone point me in the right direction?
    Thanks!
    Link to AUR package: https://aur.archlinux.org/packages/blacs-mpi/

    MoonSwan wrote:I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice
    I downloaded from the AUR the kernel26-ice 2.6.38-4 to compile and install.
    Hm... netbook.
    If you don't mind trying bfs and bfq too, then you could give the pf-kernel that is mentioned in the wiki too a try:
    http://aur.archlinux.org/packages.php?ID=50956
    It has a repository here:
    [pfkernel]
    Server = http://dl.dropbox.com/u/11734958/$arch
    and a thread: https://bbs.archlinux.org/viewtopic.php?id=103462
    I'm not quite sure how netbook performance is affected by BFS...
    It has the bonus to already be based on 3.0.
    Last edited by Cdh (2011-07-28 20:35:50)

  • How to compile and install driver?

    Hey there,
    I've got the source for a driver, but how do I compile and install it?
    Thanks.

    If you need more info check out this wiki:  http://wiki.archlinux.org/index.php/ABS … ild_System
    You don't have to build an arch package if you don't want but you will get more details here.

  • Compiling and Installing Drivers

    Hi all,
    I'm setting up Arch on a PPC Powermac G5. I've overcome several yaboot issues and managed to get Arch to boot successfully (after 2 days trying!)
    Only problem now is that the fans run at 100% all the time, and the fans in the G5 are very noisy.
    I've found this which has a therm_pm72.c file and therm_pm72.h file for controlling G5 fans.
    If someone could explain how to compile this driver and insert it into my Arch installation I'd be appreciative as I'm relatively new to linux and keen to learn.
    Cheers!

    I think you might need to compile yourself a new kernel, however I am not an expert on the kernel and its modules.  However you might be able to gleen some information that will help from these sites.
    modules (external)
    help with kconfig
    forum post that might be of marginal assistance
    For more help than those provide you might want to read through (at least sections 2 and 5) of kernel.org docs
    Good luck!
    Last edited by pauline123 (2010-12-07 16:48:15)

  • How to compile and install glib and gtk+?

    Hi,
    I am trying to "configure", a "make", and "sudo make install" on the package glib-2.26.0.
    I type ./configure which works fine but then when I type 'make' it gets to a certain point and then gives the following error message:
    *#error GNU libiconv not in use but included iconv.h is from libiconv*
    What does this mean? I've already installed iconv under /usr/bin so what exactly is going on here?
    Thanks in advance,
    Mark
    PS: I originally had Leopard on my machine, and now I have Snow Leopard; does that mean that I have to rebuild every package from scratch?? Could this be causing the problem?

    Actually this is not necessarily the wrong place to ask such a question (or was it moved to the unix forum? My head hurts). In my experience, gtk+2 and the associated software is not completely trivial to compile on OS X and to get working properly. I make fairly heavy daily use of it. I let fink do this for me.
    One immediate suggestion: Try not to put this stuff in /usr/bin. If you can put it in /usr/local, or using fink, put it in /sw, or macports (a fink alternative some prefer), in /opt/local, it has the advantage of (a) not clobbering anything distributed with OS X, and (b) won't get clobbered by OS X updates.
    I maintain precompiled versions of gtk+2 and all that other stuff, informally, to be installed via fink if you are interested.
    If so, start here: My pre-compiled packages
    Use the 64-bit version if you are able to.

  • After WLS is compiled and installed is JDK still required?

    We have installed WLS 10.3.5 and 10.3.6 on several RHEL5.6 servers. We were under the impression that JDK was required for WLS to run... not just compile. Is this true? or can we just set the JAVA_HOME to point at the corresponding JRE instead and thereby be able to remove the JDK?
    Thanks in advance

    No! Some applications require a constant recompile of some parts (for example JSFs), ie. after every WLS restart, OAM is such an application. JRE is only for run-times that do not require a Java compiler. WLS definitely does require the JDK and using the JRE is not certified.
    HTH,
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Compile and Install JK2 connector Solaris 9

    Hi
    I 'm trying to create a cluster server using Apache and two Tomcat's instance. My problem is when I have to use the JK2 connector (reference http://tomcat.apache.org/tomcat-4.1-doc/config/jk.html) because I need to compile some files, but I new in solaris and I don't know how to do it.
    I downloaded the file from this site http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/
    I'm using Apache 2.0.55, Tomcat 5.028 and Solaris 9
    Does someone help me?
    Regards

    also you would want to download the DCA floppy image from the sun website, and yes
    dont forget to change the bios setting for booting from cd. Hope this will help you.He was talking about the installation on a x86 system not SPARC !
    On a SPARC use
    setenv auto-boot? false
    which puts you at the OK-Prompt after switching on the system. Then you can enter the boot command, e.g. boot cdrom or boot disk.
    Michael

  • How to compile and install kaffe-1.0.6 on arm-linux??

    hi,all:
    Does anyone know the answer to my question?If you
    do,could you tell me the answer? Places where to find
    the answer is also wanted.
    Thank you ,all guys.
    hugh

    If you are cross-compiling kaffe then you can use this:
    CC=arm-linux-gnu-gcc \
    AR=arm-linux-gnu-ar \
    LD=arm-linux-gnu-ld \
    NM=arm-linux-gnu-nm \
    RANLIB=arm-linux-gnu-ranlib \
    KAFFEH=/home/fire/kaffeh \
    CFLAGS=-Os LDFLAGS=-s \
    ./configure \
    --host=arm-linux-gnu \
    --enable-shared \
    --disable-debug \
    --disable-xprofiling \
    --disable-xdebugging \
    --disable-feedback \
    --without-profiling \
    --without-libffi \
    --without-x \
    --without-stats \
    --disable-gcj \
    --prefix=/usr
    make
    make DESTDIR=~/distro install
    Btw this will not compile kaffe with AWT support.

  • Compiling and installing LIRC

    (I originally posted this in the Using Mac OS X Tiger section, but it was recommended I post here instead.)
    I have read that LIRC can be successfully installed on OS X, but I have not found any good directions for how to do so. I would like to configure it with the streamzap driver, but the only way it will even attempt to compile is with no driver. When I try to compile it with no driver, I get the following errors:
    lircd.c: In function 'add_client':
    lircd.c:455: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
    lircd.c: In function 'set_transmitters':
    lircd.c:1254: warning: implicit declaration of function '_IOW'
    lircd.c:1254: error: parse error before "__u32"
    make[2]: * [lircd.o] Error 1
    make[1]: * [all-recursive] Error 1
    make: * [all] Error 2
    Any help or suggestions? (Aside from getting a new remote, that is!)
    17" iMac G5 rev. B; hp pavilion ze4240   Mac OS X (10.4.3)  

    I downloaded the latest version from http://www.lirc.org

  • Compilation and instalation problem!!!

    I'm trying to install xine libraries into my Solaris 10, when I type "./configure", it seems going well, but once I type "make" and "make install", it come out "make not found." Can anyone tell me how to solve the problems? Please and thank you. By the way, how to set PATH for long term uses regardless we turn off and on the computer. Please teach me, I'm a newbee. Thank you.
    Giauw

    Hi
    Put /usr/ccs/bin in your path, make sure you did a full install of Solaris.
    Paul

  • The runtime and the compile-time

    Hello,
    I am a beginner of java,I want to know something about the runtime and the compile-time.Please explain them to me.
    Thanks very much!

    Hi,
    Consider 2 variables in a class
    public class A
             int i = 10;
             final int j = 20;
          public static void main (String a[])
                System.out.println ("Value of i = " + i);
                System.out.println ("Value of j = " + j);
    }This is compiled and the compiled class will look like:
    public class A
             int i = 10;
             final int j = 20;
          public static void main (String a[])
                System.out.println ("Value of i = " + i);
                System.out.println ("Value of j = " + 20);
    }The difference is that the compile time variables are determined and replace by Java where as the variables like i are only executed or processed when the program runs.
    This is one example. There are multiple examples.
    Thanks and regards,
    Pazhanikanthan. P

  • Script for downloading(svn) and install E17

    I've been working on a script that download for the svn repository e17, compiler and install. I've made this script more as a to lear more about bash script. You can do the same thing as my script with yaourt. I hope someone might need it.
    #!/bin/bash
    # Title: Arch E17 svn #
    # Auther: Kamil MIklaszewski ([email protected]) #
    # Date: 2008-12-19 19:10 #
    # Licence: GPL #
    # This program is free software; you can redistribute it and/or modify #
    # it under the terms of the GNU General Public License as published by #
    # the Free Software Foundation; either version 2 of the License, or #
    # (at your option) any later version. #
    # This program is distributed in the hope that it will be useful, #
    # but WITHOUT ANY WARRANTY; without even the implied warranty of #
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
    # GNU General Public License for more details. #
    # You should have received a copy of the GNU General Public License #
    # along with this program; if not, write to the Free Software #
    # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
    # MA 02110-1301, USA. #
    # Version: 1.0 #
    # Description: This script was writen for Archlinux. It will download e17 #
    # from the svn repository and it will do a full installation. #
    # This script also take care of the dependency for all of the #
    # programs that are installed with e17. #
    # TODO: For version 1.0 #
    # -have the scipt use dialog #
    # -make the script more autamatic #
    # Change Log: *2008-12-19 #
    # -creation of script #
    # Function name: prep
    # Function paramiter(s): none
    # Function description: This function prepers the envirement to run
    # the rest of the script
    prep()
    #make a temporery directory and go to it
    mkdir -p ~/arch_e17_svn
    cd ~/arch_e17_svn
    #export this path to compile succesfuly
    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
    # Function name: message
    # Function paramiter(s): Word to be printed on the screen
    # Function description: This function print messages on the screen.
    message()
    #print a message to the screen
    echo -e "==>" $*
    # Function name: downloadPackage
    # Function paramiter(s): none
    # Function description: This function go to the user's home
    # directory and downloads e17 from svn repo.
    downloadPackage()
    message "Downloading " $1 " from E17 svn repository."
    #download the specifed package with less text
    svn co --quiet http://svn.enlightenment.org/svn/e/trunk/$1 $1-svn
    # Function name: generalDependencys
    # Function paramiter(s): none
    # Function description: This fuction install the general
    # dependencys.
    generalDependencys()
    message "Installing Dependencys..."
    #list of package needed to be installed
    generalDependencysList=(
    'svn'
    'm4'
    'autoconf'
    'automake'
    'libtool'
    'pkgconfig'
    'texinfo'
    'zlib'
    'libpng'
    'libjpeg'
    'freetype2'
    'xorg'
    'dbus'
    'hal'
    'pam'
    'librsvg'
    'libnotify'
    'curl'
    'openssl'
    'libungif'
    'libtiff'
    'gettext'
    'glibc'
    'glibmm'
    'doxygen'
    'giflib'
    'cairo'
    'libx11'
    'libxext'
    'libxrender'
    'fontconfig'
    'libxcb'
    'sdl'
    'mesa'
    'qt'
    'librsvg'
    'libtiff'
    'directfb'
    #install the dependencys in the list
    sudo pacman -Sq --needed ${generalDependencysList[@]}
    # Function name: installPackage
    # Function paramiter(s): The name of the package to install
    # Function description: This fuction need one paramiter that is
    # the package to configure and install.
    installPackage()
    #change directory to the program to configure and install
    cd ~/arch_e17_svn/$1-svn
    message "Configurating package " $1
    #run the autogen script that will configure and
    #make read to install this program
    ./autogen.sh
    message "Compiling package " $1
    #now compile the source file of the program
    make
    message "Installing package " $1
    #now install the program
    sudo make install
    cleanUp()
    rm -r ~/arch_e17_svn
    # MAIN #
    main()
    #preper the envirement
    prep
    #install the general dependecys using pacman
    generalDependencys
    #list of packages to download and install
    packagesList=(
    'eina'
    'eet'
    'evas'
    'ecore'
    'efreet'
    'embryo'
    'edje'
    'e_dbus'
    'e'
    #loop that gos through the list and downloads the packages
    for package in ${packagesList[@]}
    do
    downloadPackage $package
    message "Done\n"
    done
    #loop that gos through the list and installs the packages
    for package in ${packagesList[@]}
    do
    installPackage $package
    message "Done\n"
    done
    main

    pressh wrote:to not duplicate work I've already created a python script some time ago which you can use to build e17 pacman packages using the community PKGBUILDs: http://dev.archlinux.org/~ronald/e17.html
    I may extend its usage if someone sees any use for it. Either way, just thought I should drop it here.
    is that script any different from a full build through makepkg/yaourt using AUR's Pkgbuilds?
    I tried to use it but i get a list of errors similar to
    cp: impossibile creare il file normale `eina-build/eina/.svn/prop-base/NEWS.svn-
    base': Permission denied
    but if i can use yaourt, why not?
    Edit: sorry, i looked at the python source and realized that it actually just syncs abs and then runs makepkg and namcap for each package. so i guess i'll use yaourt instead (or try to understand why makepkg exits with that error)
    Last edited by pikiweb (2009-06-19 08:48:46)

  • Error while trying to install NI-VISA driver on SUSE LINUX 11.1(The version of gcc in the path does not match the version of gcc used to compile the currently running kernel.)

    hi i am trying to install NI-VISA driver on SUSE LINUX 11.1.
     the error message it shows is
              ******************************** ERROR ****************************************
    * The version of gcc in the path does not match the version of gcc used to    *
    * compile the currently running kernel.  This can cause unpredictable         *
    * behavior in kernel drivers and should be fixed.                             *
    * gcc version: Linux)                                                          *
    * kernel compiled with: 4.3.2                                                 *
    ******************************** ERROR ****************************************
    my kernel source version is 
       linux-8nes:/home/admin # rpm -qi kernel-source
    Name        : kernel-source                Relocations: /usr/src
    Version     : 2.6.27.29                         Vendor: openSUSE
    Release     : 0.1.1                         Build Date: Sun 16 Aug 2009 03:43:52 PM IST
    Install Date: Sat 24 Oct 2009 02:13:12 AM IST      Build Host: rinck
    Group       : Development/Sources           Source RPM: kernel-source-2.6.27.29-0.1.1.src.rpm
    Size        : 309251954                        License: GPL v2 only
    Signature   : RSA/8, Sun 16 Aug 2009 03:57:25 PM IST, Key ID b88b2fd43dbdc284
    Packager    : http://bugs.opensuse.org
    URL         : http://www.kernel.org/
    Summary     : The Linux Kernel Sources
    Description :
    Linux kernel sources with many fixes and improvements.
    Authors:
        Linus Torvalds <[email protected]>
        see /usr/src/linux/CREDITS for more details.
    Source Timestamp: 2009-08-15 17:53:59 +0200
    GIT Revision: 8a413546901c407e96f7fba18574cceeb40452af
    GIT Branch: SLE11_BRANCH
    Distribution: openSUSE 11.1 
    i had also installed GCC 4.3.2.
    it shows the error message as i had posted.
    please kindly help me on this.
    Thanks and regards,
    P.karthick

    Check this solution

Maybe you are looking for

  • Free application and charged

    Hi there, I would like to know why when I want to download an application which is FREE and I try to download it, I type my password and then, I'm charged in my credit card for it. I don't understand the reason of this cost if the app is for free!  I

  • Associating my current PDF files to Acrobat 10 from Acrobat 9

    I am here in the forum because the stinkers at Adobe Tech Support said they could only help with CURRENT products. That's poor customer service.  I'm needing to point all my PDF files to my new Acrobat X Standard that I installed.  I removed the Acro

  • Nested table type in object view on 8.1.7

    Object views seem to be the ideal way to deliver XML datagrams from database queries with nested data. I need to create a datagram that contains nested data within another nested set of data eg. a family has many people, each person may have many hob

  • Functions on iPod classic want work in reverse why?

    "I have an older iPod Classic 40gb click wheel. I have tried everyone one of the options suggested by Apple. The iPod will turn on and I can move forward in the menu. However after a song is selected I can not click foward or backwards or go to the m

  • Uploading Captivate 4 using Contribute CS3

    Hello. We are trying to upload a published Captivate 4 project to the web server using Adobe Contribute CS3. When we use Contribute, the links in the swf open in the current window or not at all, even though the settings inside the swf indicate to op