On Tue, May 12, 2009 at 02:51:43PM +0100, Francesco Losciale wrote: > Hi for all, > currently, waiting for the complete implementation of the simulator, we > are using a tiny tool that emulate networks (Netkit). > > To run Netsukuku (python version) we need: > - Stackless Python (>=2.6.1); > - Netkit > - the code from the svn. > > ...
Hi. I've sent a mail some time ago, but it was from an unsubscribed address, and so got lost in the moderation filter. Anyway, it was about running this setup on a x86_64 machine. The issue is that stackless compiled outside of the Netkit virtual machine cannot be run inside it (i.e. 64-bit executable inside a 32-bit machine). So I saw that you could either cross-compile a 32-bit version outside of Netkit, or just compile Stackless inside the machine. I chose the second option, here's how: ----- 215 Stackless-python in Netkit VM 216 217 Install netkit: 218 219 # yaourt netkit 220 221 Use the second method described in the Netkit FAQ 222 (http://wiki.netkit.org/index.php/FAQ#Q09:_How_can_I_install.2Fupgrade_packages_or_other_additional_s\ oftware_inside_Netkit.3F): 223 224 # mkdir /mnt/nkfs 225 # mount -o loop,offset=32768 $NETKIT_HOME/fs/netkit-fs /mnt/nkfs 226 # chroot /mnt/nkfs 227 228 Install the build tools: 229 230 # apt-get install gcc g++ make automake autoconf libc6-dev binutils 231 232 Then proceed with Stackless (there seems to be no Debian package yet). 233 First, install dependencies: 234 235 # apt-get install bzip2 openssl 236 237 Then: 238 239 # wget http://www.stackless.com/binaries/stackless-262-export.tar.bz2 240 # tar xf stackless-262-export.tar.bz2 241 # cd stackless-2.6.2 242 ;; I tried building specifying "--with-threads --enable-shared" to 243 ;; configure and it didn't work, with "PIC register ebx clobbered in asm". 244 ;; Adding "--stackless-fewerregisters" might help if 245 ;; you really need that. Thanks to Lloyd Weehuizen http://osdir.com/ml/python.stackless/2007-04/msg00\ 071.html 246 # ./configure --prefix=/usr 247 # make 248 # make install 249 250 After all goes well (as it always does), press CTRL+D, then: 251 252 # umount /mnt/nfks ----- At this point, you can start the lab provided by Francesco. I must note that the "export=" lines in shared.startup somehow have no effect for me, probably due to the way shell scripts work. _______________________________________________ Netsukuku mailing list [email protected] http://lists.dyne.org/mailman/listinfo/netsukuku
