I've tried building Firefox from sources on my raspberry pi using the following commands but starting firefox produces this error: -bash: /usr/bin/firefox: can't execute this file.
(translated manually). How can I fix this problem?
sudo apt-src install firefox
sudo apt-src build firefox
sudo dpkg -i *.deb
file /usr/bin/firefox
?/usr/bin/firefox: symbolic link to `/opt/firefox/firefox'
file /opt/firefox/firefox
?/opt/firefox/firefox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0x6e884103555b3e2bc8ecc62624d2d8123d61980e, stripped
Intel 80386
). Raspberry PI has ARM processor - it is different architecture, thus you are getting errorcan't execute this file
. ARM processor can not run binary compiled for i386 arch. Not sure howapt-src
works and what it does but looks like you did not compile Firefox, but sort of extracted pre-compiled version. I guess on Raspberry PI it will take really long time to compile Firefox. How long did you wait for it to compile?