Failed to execute "ppc386" lazarus / 1-Linux ---------------------------------------------------------------------- mbohn · 2010-01-06 18:44 Quote from: Mike J on December 31, 2009, 12:00:54 amFollow the getlaz instructions in the Wiki and Lazarus should be up and running with no fuss and no muss. I followed the getlaz instructions and it seemed to go ok.  When I try to compile my source I get the following: Code: [Select]Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127 Laz 0.9.28.0-0 fpc 2.2.4 (This thread started on the OSX forum but now belongs in the Linux forum.) ---------------------------------------------------------------------- skalogryz · 2010-01-06 19:29 can you compile Code: [Select]begin writeln('hello world'); end. from terminal (via ppc386 or fpc)? ---------------------------------------------------------------------- mbohn · 2010-01-06 21:13 Quote from: skalogryyz on January 06, 2010, 08:29:15 pmcan you compile Code: [Select]begin writeln('hello world'); end. from terminal (via ppc386 or fpc)? No.  Here is what happened: Code: [Select]$ fpc unit1.pas Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127 and Code: [Select]$ ppc unit1.pas The program 'ppc' is currently not installed.  You can install it by typing: sudo apt-get install pearpc ppc: command not found I followed the instructions to get pearpc, then this is what happens: Code: [Select]$ ppc unit1.pasThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA GenuineIntel  CMOV MMX SSE SSE2 [Display/SDL]: Making new window 800 x 600 [IO/IDE] test/imgs/linux.img: could not open file (No such file or directory) and Code: [Select]$ fpc unit1.pasError: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127 The last error is what I started with. ---------------------------------------------------------------------- skalogryz · 2010-01-07 00:49 please note that "ppc" (pearpc emulator) is not "ppc386" ( FPC compiler for i386 processors), so calling "ppc unit1.pas" is not correct. it seems like you have a similar problem: http://forum.lazarus.freepascal.org/index.php?topic=6096.0 ---------------------------------------------------------------------- marcov · 2010-01-07 20:22 type which fpc and which ppc386 and which ppcppc and report the input here. ---------------------------------------------------------------------- mbohn · 2010-01-08 01:37 mark@mark-laptopXP:~$ which fpc /usr/bin/fpc mark@mark-laptopXP:~$ which ppc386 mark@mark-laptopXP:~$ which ppcppc mark@mark-laptopXP:~$ No response from the last two. ---------------------------------------------------------------------- mbohn · 2010-01-08 17:41 Quote from: skalogryyz on January 07, 2010, 01:49:32 amplease note that "ppc" (pearpc emulator) is not "ppc386" ( FPC compiler for i386 processors), so calling "ppc unit1.pas" is not correct. it seems like you have a similar problem: http://forum.lazarus.freepascal.org/index.php?topic=6096.0 I tried the symlink suggested in that discussion.  Wasn't sure but I changed 2.3.1 to 2.2.4 since that is my fpc version.  Anyway, it didn't help.  That is probably related to Code: [Select]which ppc386 not giving any results which I tried again after making the symlink.  Nor does Lazarus execute ppc386. ---------------------------------------------------------------------- mbohn · 2010-01-08 17:55 I have found ppc386 in the following places:  link to executable: ~/fpc-2.2.4/bin              executable ~/fpc-2.2.4/lib/fpc/2.2.4               executable /usr/lib/fpc/2.2.4 Should I make a symlink to one of those from /bin/ppc386 ? ---------------------------------------------------------------------- skalogryz · 2010-01-08 19:25 yes. btw, i'd suggest to use 2.4.0 version ---------------------------------------------------------------------- mbohn · 2010-01-08 21:50 Quote from: skalogryyz on January 08, 2010, 08:25:18 pmyes. btw, i'd suggest to use 2.4.0 version That worked.   I pointed to /usr/lib/fpc/2.2.4/ppc386 /bin/ppc386 was originally a link to a non-existing file.  Was that left over from previous failed clean/install attempts and not written over by the getlaz script? Anyway, thanks for everyone's help. And patience.