| Author |
Message |
admin
Admin
|
# Posted: 3 Sep 2007 23:21 - Edited by: admin
Reply
makepkg -create Slackware packages. -need binary files for the package you want to create. -either binary files already in your system, or you will have to build the binary files from the source files.
1. create a directory tree 2. copy all the files related to the package into directories in the directory tree(for .tgz) 3. Install binaries files into directory tree(for .tar.gz) 4. run makepkg to create the Slackware package. 5. convert to .mo with $ tgz2mo
Example : foo.tar.gz $ ./configure --prefix=/directory tree $ cd directory tree $ make $ make install
|
admin
Admin
|
# Posted: 3 Sep 2007 23:29 - Edited by: admin
Reply
My Personal Use to makepkg Apache2 + PHP5
Files * apache-2.0.59.tar.gz = 5MB * php-5.2.4.tar.gz = 9.3MB * gcc-3.4.6 = 10MB
Other information : * System - P42.8Ghz, 256MB ram * OS - noGuiX-xfce-1.0.5 Hdd Install * Disk Usages b4 installation = 525MB
|
admin
Admin
|
# Posted: 3 Sep 2007 23:38 - Edited by: admin
Reply
Step 1 Donwload - /root/Desktop * apache-2.0.59.tar.gz = 5MB * php-5.2.4.tar.gz = 9.3MB Fast Download from Malaysia Site
Step 2 - Create Directory Tree $ mkdir /root/slackpkg $ mkdir /root/slackpkg/apache $ mkdir /root/slackpkg/php
Step 3 - Install GCC Compiler gcc-3.4.6.mo $ uselivemod ../gcc-3.4.6.mo --> for noguix Live cd $ mkdir /tmp/tmpmod --> for noguix Hdd Install $ modinstall ../gcc-3.4.6.mo $ rm -f ../gcc-3.4.6.mo $ man g++ $ g++ --version $ g++ --help
root@noguiX~:modinstall /root/gcc-3.4.6.mo noGuiX Module Installer for HDD Install athlon_Crazy
* Opening /root/gcc-3.4.6.mo ... * Extracting ... * Cleaning up ... * Finished!
root@noguiX~:g++ --version g++ (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#Hdisk Usage after GCC installation is 581MB
Step 4 - Extract Binary Files $ cd /root/slackpkg/apache $ tar -zxvf /root/Desktop/httpd-2.0.59.tar.gz $ cd /root/slackpkg/php $ tar -zxvf /root/Desktop/php-5.2.4.tar.gz
root@noguiX~:ls -l /root/slackpkg/apache total 4 drwxr-xr-x 9 500 500 4096 Jul 27 2006 httpd-2.0.59 root@noguiX~:ls -l /root/slackpkg/php total 4 drwxr-xr-x 14 1002 1002 4096 Aug 29 23:39 php-5.2.4
#Disk usage after extract both files = 660MB
Step 5 - Configure Apache $ cd /root/slackpkg/apache/httpd-2.0.59 $ ./buildconf --help rebuilding srclib/apr/configure buildconf: checking installation... buildconf: autoconf not found. You need autoconf version 2.13 or newer installed to build Apache from CVS. ./buildconf failed for ap
#Download autoconf-2.6.0.tgz from slackware package 748KB #convert to .mo from .tgz $ tgz2mo ../autoconf-2.6.0.tgz #install autoconf.mo(Hdd install) $ modinstall ../autoconf-2.6.0.mo
root@noguiX~:modinstall /root/Desktop/autoconf-2.6.0.mo noGuiX Module Installer for HDD Install athlon_Crazy
* Opening /root/Desktop/autoconf-2.6.0.mo ... * Extracting ... * Cleaning up ... * Finished! root@noguiX~:which autoconf /usr/bin/autoconf root@noguiX~:autoconf -V autoconf (GNU Autoconf) 2.60 Written by David J. MacKenzie and Akim Demaille.
Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
#Disk usage after autoconf installation = 662MB
root@noguiX~/slackpkg/apache/httpd-2.0.59:./build conf --help rebuilding srclib/apr/configure buildconf: checking installation... buildconf: autoconf version 2.60 (ok) buildconf: libtool not found. You need libtool version 1.3.3 or newer installed to build Apache from CVS. ./buildconf failed for apr
#Download libtool-1.5.22.tgz & convert to libtool-1.5.22.mo 588KB #Install libtool(Hdd Install) $ modinstall ../libtool-1.5.22.mo
root@noguiX~:which libtool /usr/bin/libtool root@noguiX~:libtool --version ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#Disk usage after libtool installation = 665MB
autom4te: need GNU m4 1.4 or later: /usr/bin/m4 autoheader: '/usr/bin/autom4te' failed with exit status: 1 Creating configure ... autom4te: need GNU m4 1.4 or later: /usr/bin/m4 autoconf failed ./buildconf failed for apr-util
#Download m4-1.4.6.tgz & convert to m4-1.4.6.mo 112KB #Install m4(Hdd Install) $ modinstall ../m4-1.4.6.mo
root@noguiX~:modinstall /root/Desktop/m4-1.4.6.mo noGuiX Module Installer for HDD Install athlon_Crazy
* Opening /root/Desktop/m4-1.4.6.mo ... * Extracting ... * Cleaning up ... * Finished!
root@noguiX~:m4 --version GNU M4 1.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Rene' Seindal.
#Disk usage after m4 installation = 666MB
|
admin
Admin
|
# Posted: 4 Sep 2007 01:25
Reply
To be Continued.....
|