You are not logged in.
Hi
I install the SliTaz 4.0 on a USB key with success. I boot my system from this USB key. After I install the gcc-4.5.2 using the command line: tazpkg get-install gcc-4.5.2. I was able to do a HelloWord.c, compile and execute with success. I want to update my USB key to keep this install package on my image. To do this I use the command line: tazusb writefs gzip. It was done with success. I reboot my system, but the gcc compiler is not in my system anymore. I read a lot of documentation on this topic on this site but I do not understand why it is not working. Is somebody could help me?
Best regards
Jocelyn
(/home ?..)
Offline
Hi Aleksej
Thanks a lot for helping me. I am sorry but I am not sure about your comment, (/home ? ...) Do you want me to do ls /home and put the result here?
Best Regards
Jocelyn
Hello again
I did not see the link above your comment. Under the /home directory, I see 3 directories, boot, lost+found and tux. Under the boot directory, I have the following files:
bzImage
extLinux (directory)
previous.gz
rootfs1.gz
rootfs2.gz
rootfs3.gz
rootfs.gz
Another strange thing is if I execute the following command: gcc --version
The answer is: /bin/sh: gcc: not found.
Also I cannot find any gcc tools.
find / -name gcc
This command return nothing.
I am not sure if I use the good starting option. At the boot I select the first one, Slitaz live. Is it correct?
Thanks for help
Best regards
Jocelyn
Hi Jocelyn,
I don't know what is your bootloader. Maybe it is grub, grub4dos or syslinux. You should change your bootloader config file (menu.lst?) to force using your rootfs.gz instead of rootfs1-4.gz.
Ok, folder "extlinux" in your post tells me that you use extlinux bootloader, but I forgot how to configure it. You want to find text file where rootfs1-4.gz mentioned.
[c]cd /home; for i in $(find .); do grep -H 'rootfs1.gz' $i; done[/c]
Offline
TazUSB LiveUSB
Booting into the saved rootfs.gz with syslinux.
At the orange boot menu arrow down to SliTaz core
Hit the tab key
After initrd= delete the commas and any /boot/rootfs[1-4].gz so it looks like this:
[c]initrd=/boot/rootfs.gz[/c]
Hit enter to boot the modified rootfs.gz with your installed programs.
Edit the /boot/isolinux/isolinux.cfg to modify SliTaz core Live entry to boot without having to manually edit every boot.
Software to compile includes binutils linux-api-headers glibc-dev gcc make elfkickers:
# [c]tazpkg -gi slitaz-toolchain[/c]
Offline
Edit the /boot/isolinux/isolinux.cfg to modify SliTaz core Live entry to boot without having to manually edit every boot.
isolinux -> syslinux
Offline
Hi Aleksej and Mojo,
Thanks a lot for the quick answers. With all information you give to me, I could now make modifications (add/remove packages and files) to my system and keep it after a reboot.
Best Regards
Jocelyn
[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]