Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore Armv7 => Topic started by: honeydatax@sapo.pt on August 11, 2021, 08:19:19 PM

Title: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 11, 2021, 08:19:19 PM
im traing to install gcc on my raspberry pi  using tce-load but afther
im reboot the gcc is not install no starup  im have all the files current loadinto /home/tc and a bash file call
gcc.sh but must install every time im turn on the pi?
thanks


printf "\e[47;45m"
tce-load -i gcc-doc.tcz
tce-load -i gcc-locale.tcz
tce-load -i gcc.tcz
tce-load -i gcc_base-dev.tcz
tce-load -i gcc_libs-dev.tcz
tce-load -i gcc_libs.tcz
tce-load -i cloog-dev.tcz
tce-load -i cloog.tcz
tce-load -i isl-dev.tcz
tce-load -i isl.tcz
tce-load -i mpc-dev.tcz
tce-load -i mpc-doc.tcz
tce-load -i mpc.tcz
tce-load -i mpfr.tcz
tce-load -i gmp-dev.tcz
tce-load -i gmp-doc.tcz
tce-load -i gmp.tcz
tce-load -i binutils-dev.tcz
tce-load -i binutils-doc.tcz
tce-load -i binutils-locale.tcz
tce-load -i binutils.tcz
tce-load -i glib2.tcz
tce-load -i glibc_base-dev.tcz


Title: Re: install gcc on start up rpi
Post by: Rich on August 11, 2021, 09:03:14 PM
Hi honeydatax@sapo.pt
Welcome to the forum.

Did you read this and expand your mmcblk0p2 partition:
http://tinycorelinux.net/12.x/armv6/releases/RPi/IMPORTANT
http://tinycorelinux.net/12.x/armv6/releases/RPi/README

Once you've done that, this will install a proper tool chain:
Code: [Select]
tce-load -wi compiletc.tczIt will also load it everytime you reboot.
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 11, 2021, 09:20:36 PM
thanks , im have othes question, the problem is my internet is usb not network jack
,and ai dont know as to install usb internet?
thanks , in been download the file by usb drive
and network is not install :(
Title: Re: install gcc on start up rpi
Post by: Rich on August 11, 2021, 09:59:49 PM
Hi honeydatax@sapo.pt
If you are downloading to a USB drive, you need the files listed here:
http://tinycorelinux.net/13.x/armv6/tcz/compiletc.tcz.tree
You will need the  .tcz,  .tcz.md5.txt,  and .tcz.dep file if it exists for each of the listed files.

Make sure you download from the repo that matches the version and architecture of piCore you are running.
To get the architecture, run:
Code: [Select]
uname -rIf it says:
piCore  its  armv6
piCore-v7  its  armv7
piCore-v7l  its  armv7l

Save the files to  /mnt/mmcblk0p2/tce/optional/
To have it load automatically when you boot:
Code: [Select]
echo "compiletc.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst
Title: Re: install gcc on start up rpi
Post by: Rich on August 11, 2021, 10:07:16 PM
Hi honeydatax@sapo.pt
If you don't know what version you are running, do this:
Code: [Select]
versionReplace the number after the decimal point with an  x , as in 12.x or 13.x.
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 11, 2021, 11:45:53 PM
now other problem im need to install network
can you help to.
my network is usbnet.tcz
im just install it but dont kno to ignite it
?
Title: Re: install gcc on start up rpi
Post by: Rich on August 12, 2021, 06:44:31 AM
Hi honeydatax@sapo.pt
... my network is usbnet.tcz  ...
I don't see any extension called  usbnet.tcz.

Lets start by finding out which repository you should be using.
First, download the attached script.

Next, make it executable:
Code: [Select]
chmod 775 MyRepo
Then, run this command:
Code: [Select]
./MyRepo > MyRepo.txt
Attach the  MyRepo.txt  file to your next post.
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 12, 2021, 03:14:56 PM
sory my english is not very good im using google traductor , my internet is a usb cable conected to a phone : )
im using my phone conected by mini usb to usb of raspberry pi im dont, im not use the rs45 plug in ,wat packate
im sold use ? im using repository arm6 :) thanks.
Title: Re: install gcc on start up rpi
Post by: Rich on August 12, 2021, 05:01:00 PM
Hi honeydatax@sapo.pt
See if this thread answers your question:
http://forum.tinycorelinux.net/index.php/topic,25166.0.html
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 14, 2021, 10:07:01 AM
Thanks ; im having other problem  im have  create partiation3 and leave no space to partionion2 ;
can im reciside par3 and give more space to partiontion2
wat command i must use?

part1=/mnt/mmcblk0p1
part2=/mnt/mmcblk0p2
part3=/mnt/mmcblk0p3


im need more space to install .tcz not have more space disk is full thanks
Title: Re: install gcc on start up rpi
Post by: Rich on August 14, 2021, 10:35:08 AM
Hi honeydatax@sapo.pt
You need to:
1. Unmount  /mnt/mmcblk0p3
2. Make  /mnt/mmcblk0p3  smaller
3. Move  /mnt/mmcblk0p3  towards the end of the disk to make room for  /mnt/mmcblk0p2  to expand.
4. Expand  /mnt/mmcblk0p2

I never do this kind of stuff from the command line so I can't give you the commands. I always use  gparted.tcz.
This will be easiest to accomplish if you can plug the card into another Linux machine so none of the partitions
are mounted, and work on it there.
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 17, 2021, 01:51:01 PM
Thanks , it work but my pi dont detect usb sharing net the phone is very old ; on the phone cell show than is sharing the camera id the pc ; but the pc can donwload files from rj45 internal network ; is same one ever test a cable adapter from micro usb into rj45 rs ? It works ?
Or this kind of cable is for other function?
Thanks all the help all the users ever give me tiny is fantastic :)
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 17, 2021, 01:56:11 PM
Im have usb libs.tcz install but my cell phone is very old
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 18, 2021, 06:16:33 PM
Wat packs im nead to install to run a freebasic program compiled in debian raspberry ?
Title: Re: install gcc on start up rpi
Post by: Rich on August 18, 2021, 08:55:19 PM
Hi honeydatax@sapo.pt
The best way to find out is to first copy the freebasic  program to your raspberry pi. Then run:
Code: [Select]
ldd ./YourProgram | grep -i foundThis will print a list of any missing libraries.
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 19, 2021, 07:33:35 AM
Converting libtinfo.so.6 and libncurses.so.5 from .deb2.tcz here to download .debain packs for raspbery pi?
Thanks
Title: Re: install gcc on start up rpi
Post by: Rich on August 19, 2021, 06:54:34 PM
Hi honeydatax@sapo.pt
Are you saying your freebasic program wants  libtinfo.so.6  and  libncurses.so.5 ? Those 2 files are part of the
ncurses  package and should both be either version 5 or version 6.
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 19, 2021, 10:46:34 PM
thanks
5

now than im create the tcz packs now im need to create a .tcz to install the freebasic but the installer of freebasic
have a install.sh  can im run a bath from a .tcz file

https://mega.nz/#!FiYAETiT!VXn4p48SU9I99EOvSbJDZSktBkio8NcPdnp6pvGSfVg
Title: Re: install gcc on start up rpi
Post by: honeydatax@sapo.pt on August 20, 2021, 07:42:52 AM
https://github.com/honeydatax/tinycorelinux/blob/main/deb2tcz.bas

Im used my pack builders to build tcz