0
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
Can you post output of the following command:
file /usr/bin/firefox
? – VL-80 – 2014-01-23T21:23:34.987/usr/bin/firefox: symbolic link to \
/opt/firefox/firefox'` – MeinAccount – 2014-01-24T17:11:14.887Good. Now can you post output of
file /opt/firefox/firefox
? – VL-80 – 2014-01-24T17:39:07.837/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
– MeinAccount – 2014-01-24T21:48:30.233Your Firefox is compiled for i386 architecture (
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? – VL-80 – 2014-01-24T22:06:00.253