| Juanito  
 
  
 
 
 Group: Members
 Posts: 1601
 Joined: Sep. 2005
 | 
|  | Posted: June 11 2007,04:50 |  |  I thought I'd posted this before but maybe not...
 
 Since there are some issues with apt-get in DSL-N and since it is not clear that the extensions used to compile in DSL (gcc1, gcc1-with-libs, etc) will work as intended in DSL-N, I used Debian packages to set up a compile environment instead.
 
 The number of packages to load evolved as different compiles complained of things missing, the symlinks might not now be needed at all and later packages may overwrite earlier packages, but it works for me.
 
 So, in order to compile programs for DSL-N, first load gnu-utils from the DSL-N repository, then load dsl-dpkg from the DSL repository and finally download the debs listed (now Debian oldstable) on to your "Pendrives of higher capacity" and run the following script.
 | Code Sample |  | #!/bin/bash #
 # Requires dsl-dpkg.dsl & gnu-utils.dsl
 #
 dpkg -i /path-to-file/libc6_2.3.2.ds1-22sarge5_i386.deb
 dpkg -i /path-to-file/libgcc1_3.4.3-13sarge1_i386.deb
 dpkg -i /path-to-file/libdb4.2_4.2.52-18_i386.deb
 dpkg -i /path-to-file/libgdbm3_1.8.3-2_i386.deb
 dpkg -i /path-to-file/perl-base_5.8.4-8sarge5_i386.deb
 dpkg -i --force-all /path-to-file/perl-modules_5.8.4-8sarge5_all.deb
 dpkg -i /path-to-file/perl_5.8.4-8sarge5_i386.deb
 dpkg -i /path-to-file/m4_1.4.2-1_i386.deb
 dpkg -i /path-to-file/make_3.80-9_i386.deb
 dpkg -i /path-to-file/patch_2.5.9-2_i386.deb
 dpkg -i /path-to-file/autoconf_2.59a-3_all.deb
 dpkg -i /path-to-file/autotools-dev_20050422.1_all.deb
 #dpkg -i /path-to-file/automake1.7_1.7.9-7_all.deb
 #dpkg -i /path-to-file/automake1.8_1.8.5-3_all.deb
 dpkg -i /path-to-file/automake1.9_1.9.5-1_all.deb
 dpkg -i /path-to-file/binutils_2.15-6_i386.deb
 dpkg -i /path-to-file/cpp-2.95_2.95.4-22_i386.deb
 dpkg -i /path-to-file/gcc-2.95_2.95.4-22_i386.deb
 #
 dpkg -i /path-to-file/linux-kernel-headers_2.5.999-test7-bk-17_i386.deb
 dpkg -i /path-to-file/libc6-dev_2.3.2.ds1-22sarge5_i386.deb
 #
 ln -s /usr/src/linux-2.6.12 /usr/src/linux
 ln -s /usr/bin/gcc-2.95 /usr/bin/cc
 ln -s /usr/bin/gcc-2.95 /usr/bin/gcc
 ln -s /usr/bin/cpp-2.95 /usr/bin/cpp
 ln -s /usr/bin/cpp-2.95 /lib/cpp
 dpkg -i /path-to-file/libtool_1.5.6-6_i386.deb
 #
 dpkg -i /path-to-file/libsysfs1_1.2.0-5_i386.deb
 dpkg -i /path-to-file/libsysfs-dev_1.2.0-5_i386.deb
 #
 #dpkg -i /path-to-file/libmagic1_4.12-1_i386.deb
 #dpkg -i /path-to-file/file_4.12-1_i386.deb
 #
 dpkg -i /path-to-file/gcc-3.3-base_3.3.5-13_i386.deb
 dpkg -i /path-to-file/cpp-3.3_3.3.5-13_i386.deb
 dpkg -i /path-to-file/cpp_3.3.5-3_i386.deb
 dpkg -i /path-to-file/gcc-3.3_3.3.5-13_i386.deb
 dpkg -i /path-to-file/gcc_3.3.5-3_i386.deb
 #
 dpkg -i /path-to-file/pkg-config_0.17.2-1_i386.deb
 dpkg -i /path-to-file/gettext-base_0.14.4-2_i386.deb
 dpkg -i /path-to-file/gettext_0.14.4-2_i386.deb
 dpkg -i /path-to-file/zlib1g_1.2.2-4.sarge.2_i386.deb
 dpkg -i /path-to-file/libxml2_2.6.16-7_i386.deb
 dpkg -i /path-to-file/zlib1g-dev_1.2.2-4.sarge.2_i386.deb
 dpkg -i /path-to-file/libxml2-dev_2.6.16-7_i386.deb
 #
 dpkg -i /path-to-file/libncurses5_5.4-4_i386.deb
 dpkg -i /path-to-file/libncurses5-dev_5.4-4_i386.deb
 #
 dpkg -i /path-to-file/libstdc++5_3.3.5-13_i386.deb
 dpkg -i --force-all /path-to-file/libstdc++5-3.3-dev_3.3.5-13_i386.deb
 dpkg -i /path-to-file/g++-3.3_3.3.5-13_i386.deb
 dpkg -i /path-to-file/g++_3.3.5-3_i386.deb
 #
 dpkg -i /path-to-file/libexpat1_1.95.8-3_i386.deb
 dpkg -i /path-to-file/libexpat1-dev_1.95.8-3_i386.deb
 #
 dpkg -i /path-to-file/bison_1.875d-1_i386.deb
 dpkg -i /path-to-file/flex_2.5.31-31sarge1_i386.deb
 dpkg -i /path-to-file/byacc_1.9.1-1.1_i386.deb
 #
 # EOF
 
 | 
 
 If this works, you are ready to compile.
 |