Hello I'm trying to install the arm gcc compiler 4.4.1 (for mini 6410) in Ubuntu 9.1. When I execute the command: tar xvzf arm-gcc-4.4.1.tar.gz -C/ I get a huge list of errors always saying: "cannot open: No such file or directory" When I execute the comand withou the -C/ I dont get any error. Anyone knows what is happening? Thanks!!
Installing arm gcc in Ubuntu
Well -C/ try to write extracted file to root and you're not root so it complains. Anyway try to use -C ./ it will extract to current directory. marek
You need to put a space after the C before / Try this line: sudo tar xvzf arm-gcc-4.4.1.tar.gz -C / I descompresses in /usr/local/arm ...., but I can't change PATH with command: sudo vi /root/.bashrc or sudo gedit /root/bashrc You can see the video Qtopia on RedHat, it is on CD of Friendly ARM If you can do it, please tell me how!!!
Guys thanks for yours responses. Finally I could install the arm gcc using the sudo command, same way than jeim. To modify the bashrc I used the command: sudo gedit /root/.bashrc Also I modified the .profile file located in home/username (you must enable the option View->Show Hidden Files in order to see it) with the same line than .bashrc file: export PATH=$PATH:/usr/local/arm/4.4.1/bin Well, after this I closed and opened session again, but the arm-gcc-linux -v command didnt work. I dont know how I managed to make it work, but today I tried again and it was not working again. It gives me the following error: arm-linux-gcc: command not found ¿Anyone knows what is happening this time? Thanks again!!
First do: echo $PATH to verify you have the path in place. I found that I had to CD my way to the actual directory that arm-linux-gcc was in before doing --version. I haven't seen a way of doing it from anywhere else.
Maybe this is more helpful. In the actual directory that holds the executable file type: sudo ./arm-linux-gcc -v OR sudo ./arm-linux-gcc --version Now, if you have installed 4.3.2 from FriendlyArm the above won't work because arm-linux-gcc is a symlink to arm-none-linux-gnueabi-gcc So, type: sudo ./arm-none-linux-gnueabi-gcc -v OR sudo ./arm-none-linux-gnueabi-gcc --version
**** export PATH=$PATH:/usr/local/arm/4.4.1/bin Well, after this I closed and opened session again, but the arm-gcc-linux -v command didnt work. I dont know how I managed to make it work, but today I tried again and it was not working again. It gives me the following error: **** Also, the export command only lasts as long as that particular terminal session is running. As soon as you close it, you lose the path. If you just want to see which compiler you are using, after your export command has been entered just type in: which arm-linux-gcc and the path to the currently active compiler should be displayed.
davef thank you very much for your help!! Yesterday I have compiled my first c program for the mini6410 and it worked ok! I didn't make any change neither used the commands you suggested me. I will try in these days and if I have problems again I will try your commands. In that case I will tell you my results. Thanks again!!
rakeshreddy@ubuntu:~$ arm-linux-gcc -v arm-linux-gcc: command not found after installing and exporting the path export PATH=$PATH:/usr/local/arm/4.3.2/bin by gedit command i am getting this problem i tried both as user and root please help me.
I guess you tried my suggestion above. Have you actually looked in /usr/local/arm/4.3.2/bin and seen a whole bunch of files that resemble GCC?