Recent

Author Topic: Installing on older MAC laptop  (Read 6882 times)

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Installing on older MAC laptop
« on: December 21, 2020, 09:47:19 am »
First of all I never use MACs so I know very little about them. 
I went through the process of installing the lazarus, fpc and fpc src .dmg files.
I can run Lazarus but when I try and compile even the simplest sample project like bitbutton I get the following error:
/Developer/lazarus/packager/registration/lazaruspackageintf.pas(70,27) Fatal:  There were 1 errors compiling this module, stopping. 

I suspect I did the install in the wrong order or something isn't quite right but I have no clue where to look.  Using the terminal I can see that what appear to be the correct folders in /usr/... 

Would someone perhaps hold my hand and walk me through the fix?

To make matters even more embarrassing the reason I'm setting this up on my wife's old MAC is a friend wants to run a few of my Lazarus applications for LED light control.  He has a MAC.  I pointed him to the web site and he installed and even compiled a sample program.  And he doesn't know how to program in C or Pascal. 

Clearly I screwed up.  Help!
Thanks
John
 

mischi

  • Full Member
  • ***
  • Posts: 178
Re: Installing on older MAC laptop
« Reply #1 on: December 21, 2020, 10:00:19 am »
Can you tell us the versions of your system, fpc and lazarus?

Are you familiar with commands in a Terminal?

MiSchi.

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #2 on: December 21, 2020, 10:25:03 am »
I've installed and created applications on BeagleBone Blacks and Raspberry Pi with Lazarus.  And of course lots of Delphi and now a few applications using Lazarus on Win-10.  So I know my way around (a bit) in the Linux terminal.

The Lazarus About screen shows:
Lazarus 1.0.12 Date 2013-08-24
FPC 2.6.2
i386-darwin-carbon

The MAC is running OS X Yosemite Version 10.10.5
2GHz Intel Core 2 Duo
8 GB Memory

On the MAC deskop I have three desktop Icons for Lazarus, fpc and fpcsrc.  A double click on each one opens a folder with an icon for lazarus.pkg.  The fpc-2.6.2 opens up a folder with two packages. Intelmaxosx and fpc-xcode.  The fpcsrc icon opens up the folder with just the fpcsrc pkg.

« Last Edit: December 21, 2020, 10:30:12 am by jcdammeyer »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #3 on: December 21, 2020, 11:08:29 am »
Installing Lazarus on a Mac is not particularly difficult but it is critical that you do the install in the correct order. Skipping steps will almost certainly end in tears. In brief, here is what you need to do:

1. Download and install Xcode.
2. Install the global command line tools for Xcode.
3. Download and install the Free Pascal Compiler (FPC) binaries and the FPC source from the Lazarus IDE file area (Important do this before you install the Lazarus IDE)
4. Download and install the Lazarus IDE from the Lazarus IDE file area
5. Configure LLDB - the Apple supplied (and signed) debugger from within the Lazarus IDE.

These steps are explained in more detail in the Wiki article Installing Lazarus on macOS.

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #4 on: December 21, 2020, 06:40:35 pm »
Hi Trev,
Thank you. Unfortunately that's not particularly helpful. 
I'm pretty sure I did do it in the wrong order.  Following the links you posted I believe the best thing to do is  uninstall it and try again.
But first, just for interest sake I did try to install each of the packages in order of fpc, fpcsrc and then lazarus.  Once again the install went without issue.  But, this time building the sample bitbutton it failed at a different place:
  bitbtnform.pp(334,36)
  Label2.Caption := 'blGlyphBottom';

So then back to the links you posted to uninstall the software.  Unfortunately 'fink' returns a command not found.  No idea how to install fink to uninstall the lazarus tool chain.



mischi

  • Full Member
  • ***
  • Posts: 178
Re: Installing on older MAC laptop
« Reply #5 on: December 21, 2020, 08:06:23 pm »
So then back to the links you posted to uninstall the software.  Unfortunately 'fink' returns a command not found.  No idea how to install fink to uninstall the lazarus tool chain.
It looks like something needs to be made clear. The three disk images with fpc, fpcsrc and lazarus are all you need to get you going. Don't worry about fink, it is a completely different story.

MiSchi.

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #6 on: December 21, 2020, 08:23:34 pm »
So how do I start from here.  Even the simple form program fails compiling.   Installation on LinuxCNC PC, Pi3, Pi4 and BeagleBone Black not to mention WIN-10 and WIN-7 has been effortless.

What do I do on a MAC to remove all three installations and start from scratch?

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #7 on: December 21, 2020, 09:23:10 pm »
I've created the script listed here.
https://wiki.freepascal.org/Installing_Lazarus_on_macOS
It deleted most of the folders.  However I can still run the Lazarus IDE so that information for the script seems to be out of date.  There's still stuff left over.

Now to try and install over again.
The fpc-2.6.2.Intel-macosx folder has two packages.  The fpc-2.6.2.Intel-macosx.pkg and fpc-xmode-2.4.0.pkg.

Which one to do first?

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #8 on: December 22, 2020, 12:23:46 am »
I've created the script listed here.
https://wiki.freepascal.org/Installing_Lazarus_on_macOS
It deleted most of the folders.  However I can still run the Lazarus IDE so that information for the script seems to be out of date.  There's still stuff left over.

You need to drag the Lazarus application from your Applications folder to the trash. The script just deletes all the files not located in the Applications folder as Mac users are used to simply dragging an application from the Applications folder to the trash to uninstall it which works for "normal" applications like those you build with Lazarus, but not with development tools that rely on many other files scattered throughout the file system.

Quote
Now to try and install over again.
The fpc-2.6.2.Intel-macosx folder has two packages.  The fpc-2.6.2.Intel-macosx.pkg and fpc-xmode-2.4.0.pkg.

Why are you installing an old version from 3 years ago?

You should follow the instructions I linked earlier in which case the correct files to install for Yosemite are located here.

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #9 on: December 22, 2020, 03:24:19 am »
Thanks.  Power just came back on after 5 hours due to a very wet snowfall which took down powerlines.

I am installing the version from the main web page that appeared to be the correct one for the laptop in question.  If an ignorant MAC user like me (yes I admit it) ends up installing the old version then there's probably something wrong with how the information is presented.

So if you are suggesting that from that linked page I download
fpc-3.0.4a.intel-macosx.dmg
fpc-src-3.0.4-macos.dmg
lazarus-2.0.10-i686-macosx.dmg

and install in that order I will do that. 

I'll first drag the icon from the applications folder to the trash.  I tried right clicking on it but no 'delete' or 'move to trash' option.
 

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #10 on: December 22, 2020, 03:47:54 am »
Alright,  Everything dragged to trash and trash securely emptied. 
Click on your link and then to download the first of the 3 files
https://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Lazarus%202.0.10/

The result is:
Secure Connection Failed
     
An error occurred during a connection to sourceforge.net.

Cannot communicate securely with peer: no common encryption algorithm(s).

(Error code: ssl_error_no_cypher_overlap)

I'm using Firefox.  Safari seems to work.  Once the downloads are done I'll try again the right order.


jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #11 on: December 22, 2020, 04:25:58 am »
And if course one of the reasons my wife upgrade her laptop is for messages like these.

"Xcode can’t be installed on “Macintosh HD” because OS X version 10.15.4 or later is required."

And the install sequence 

I tried searching for a version that would work but the apple store is pretty rude about users with older hardware as they really want users to buy new.  So where do I get xcode that will run on OS X Yosemite Version 10.10.5?

So now what?

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #12 on: December 22, 2020, 07:55:00 am »
So where do I get xcode that will run on OS X Yosemite Version 10.10.5?

So now what?

If you read the Step 1 details in the Wiki article I linked it explains what you need to do to download a compatible Xcode version for an earlier version of macOS, albeit that it doesn't list the actual version which would be even more helpful for newcomers (I'll add this later when I have some spare time).

From a quick look you'll need both Xcode 6.2 and "Command Line Tools (OS X 10.10) for Xcode - Xcode 6.2". [edit: Jonas has more up to date info below on the best version - see next post.]
« Last Edit: December 22, 2020, 08:02:20 am by trev »

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: Installing on older MAC laptop
« Reply #13 on: December 22, 2020, 07:56:12 am »
First of all, download Firefox ESR to get a recent browser that is still supported on OS X 10.10: https://www.mozilla.org/en-US/firefox/enterprise/

You can download older versions of Xcode from https://developer.apple.com/develop/ (use the new Firefox if Safari doesn't work well):
* click on Downloads in the navigation bar at the top
* log in using an Apple ID
* on the download page, click on "More" at the top (or go to https://developer.apple.com/download/more/ )
* in the search box, enter 7.2.1 (Xcode 7.2.1 is that last version that was supported on OS X 10.10: https://en.wikipedia.org/wiki/Xcode#Xcode_7.0_-_10.x_(since_Free_On-Device_Development) )
* download and install Xcode
* install the Xcode command line tools as instructed by the "Getting Started (Intel).rtf" document on the FPC installer disk image
* install FPC
* install the FPC sources and Lazarus

PS: it's Mac, not MAC :) (MAC is part of ethernet)

jcdammeyer

  • Full Member
  • ***
  • Posts: 213
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #14 on: December 22, 2020, 08:16:13 am »
Thank you Trev and Jonas.
I'll try it out tomorrow.
I'll have to see if I can still find my apple ID.  Haven't used it since it's been a few years since Apple stopped support on my iPhone 4S.  :o 

And before anyone says anything, the only thing it doesn't do well anymore is surfing the net.  Still gets.sends texts, emails, navigation, timer, music and a lot of other apps.  Oh and works as a telephone.   And it plugs into my very expensive Denon Stereo interface and charges there along with playing music through the 7.1 system.  It also plugs into my car for charging and music and with bluetooth hands free.

If things go well I'll be able to build on the Apple.
Thanks again
John



 

TinyPortal © 2005-2018