Recent

Author Topic: fpc compiler not installing correctly  (Read 5558 times)

silverbeast

  • Newbie
  • Posts: 4
fpc compiler not installing correctly
« on: July 07, 2013, 12:41:01 am »
Hi everyone,

I'm having a bit of an issue installing the fpc compiler. Whenever I open lazarus I receive the error: /usr/local/bin/ppc386
Error: File not found

When I navigate to the directory, ppc386 is a shortcut that leads to nowhere. I've tried installing/uninstalling it several times, but have had no success in locating the compiler. I've also tried installing older versions, yet the same issue occurs.

System specifications:
Mac OS X 10.8.4
2012 Base Model Retina MBP
Intel 2.5Ghz

« Last Edit: July 07, 2013, 12:55:26 am by silverbeast »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1274
    • formatio reticularis
Re: fpc compiler not installing correctly
« Reply #1 on: July 07, 2013, 12:51:28 am »
I assume that you use an Intel-based Mac. Under this condition the path /usr/local/bin/ppc386 should be correct.

Did you also download and install fpc and fpcsrc along with Lazarus?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: fpc compiler not installing correctly
« Reply #2 on: July 07, 2013, 12:55:20 am »
On my 64-bits Linux system:
/usr/local/bin/ppcx64
is symlink to:
/usr/local/lib/fpc/2.7.1/ppcx64
or
/usr/local/lib/fpc/2.6.0/ppcx64
(I have more versions of FPC and I can switch them by changing the symlink).

Solution: Try to find where FPC is installed and correct the symlink. Then use "fpc -iV" in console to check if FPC works.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

silverbeast

  • Newbie
  • Posts: 4
Re: fpc compiler not installing correctly
« Reply #3 on: July 07, 2013, 01:07:54 am »
On my 64-bits Linux system:
/usr/local/bin/ppcx64
is symlink to:
/usr/local/lib/fpc/2.7.1/ppcx64
or
/usr/local/lib/fpc/2.6.0/ppcx64
(I have more versions of FPC and I can switch them by changing the symlink).

Solution: Try to find where FPC is installed and correct the symlink. Then use "fpc -iV" in console to check if FPC works.

Excellent! It was in that folder. However, it was inaccessible to my user account, rendering the symlink useless.
I had to sudo chmod 755 /usr/local/lib in orde to make it world executable.

silverbeast

  • Newbie
  • Posts: 4
Re: fpc compiler not installing correctly
« Reply #4 on: July 07, 2013, 01:18:05 am »
Well, here's a new issue...
Now that the compiler's working, it's giving me issues :p

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: fpc compiler not installing correctly
« Reply #5 on: July 07, 2013, 09:02:36 am »
Debugger timeout is a known problem on OSX IIRC. Have a look on the wiki pages about debugging/setting up the debugger and you'll find a workaround.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

silverbeast

  • Newbie
  • Posts: 4
Re: fpc compiler not installing correctly
« Reply #6 on: July 09, 2013, 12:24:10 am »
Debugger timeout is a known problem on OSX IIRC. Have a look on the wiki pages about debugging/setting up the debugger and you'll find a workaround.

I disabled the timer. However, I have another question. Is the compiler in OS X not supposed to activate a terminal window to run my program like in windows? I am able to run my program manually by clicking on the executable and opening it in terminal. Is this the only way?

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: fpc compiler not installing correctly
« Reply #7 on: August 05, 2013, 05:47:55 pm »
Is the compiler in OS X not supposed to activate a terminal window to run my program like in windows? I am able to run my program manually by clicking on the executable and opening it in terminal. Is this the only way?
No. I forgot the details of the according project settings, but the application can start directly without a terminal. Maybe, check the setting "Use application bundle for start and debug (Darwin only)". This assumes that the application bundle is already built. If this is not the case, you have to do this once.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

 

TinyPortal © 2005-2018