WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: install gcc on start up rpi  (Read 10456 times)

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
install gcc on start up rpi
« on: August 11, 2021, 11: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



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #1 on: August 12, 2021, 12:03:14 AM »
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.

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #2 on: August 12, 2021, 12:20:36 AM »
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 :(

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #3 on: August 12, 2021, 12:59:49 AM »
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #4 on: August 12, 2021, 01:07:16 AM »
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.

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #5 on: August 12, 2021, 02:45:53 AM »
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
?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #6 on: August 12, 2021, 09: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.

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #7 on: August 12, 2021, 06: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #8 on: August 12, 2021, 08:01:00 PM »
Hi honeydatax@sapo.pt
See if this thread answers your question:
http://forum.tinycorelinux.net/index.php/topic,25166.0.html

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #9 on: August 14, 2021, 01:07:01 PM »
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #10 on: August 14, 2021, 01:35:08 PM »
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.

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #11 on: August 17, 2021, 04: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 :)

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #12 on: August 17, 2021, 04:56:11 PM »
Im have usb libs.tcz install but my cell phone is very old

Offline honeydatax@sapo.pt

  • Newbie
  • *
  • Posts: 13
Re: install gcc on start up rpi
« Reply #13 on: August 18, 2021, 09:16:33 PM »
Wat packs im nead to install to run a freebasic program compiled in debian raspberry ?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: install gcc on start up rpi
« Reply #14 on: August 18, 2021, 11: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.