Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-09

Best method to uninstall fpc and lazarus

25 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul

I want to uninstall and reinstall fpc and lazurus. My current installation is useless.
I found the steps on Wiki, but I used the docs on Wiki to install them and it totally went wrong.

thanks,

Paul

Jonas Maebe
to Paul
Paul wrote
I want to uninstall and reinstall fpc and lazurus. My current installation is useless. I found the steps on Wiki, but I used the docs on Wiki to install them and it totally went wrong.

The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal are correct. I just went over them and changed them so they are by default for FPC 2.2.2. Make sure you also remove the .lazarus directory in your home directory as described at the end. I guess most of your problems are related to that one in fact.

When you install next time, I would recommend not to install Lazarus 0.9.24 first and to go directly with 0.9.25. As for FPC itself, please use the official installer from http://www.freepascal.org and not the one from http://www.hu.freepascal.org/lazarus, because I believe that at one point in time the latter did not create a default FPC configuration file (I don't know whether this has been fixed in the mean time).

This means that it only works (worked) if you previously already installed an FPC release and did not remove its configuration file (but you will remove it by performing the uninstallation steps above). The reason is that FPC configuration files are most of the time compatible between different versions, because all paths include variables which are replaced with the currently used FPC version.

It's no problem to use the fpcsrc package from that page (or to install the fpc-2.2.2 package from that page over an existing install of FPC).

Jonas

PS: uninstalling stuff uninstalled using the default Mac OS X installer /is/ unnecessarily hard and non-intuitive at this point. I have no idea why after all this time Apple still have not added a simple uninstall option. The only upside to this is that developers shy away as much as possible from using an installer, and instead opt (where possible) for drag-n-drop installations (whereby "uninstall" is reduced to "delete this folder").

Tom Verhoeff
to Jonas Maebe
Jonas Maebe wrote 14 lines
On 02 Sep 2008, at 09:05, Paul wrote: > I want to uninstall and reinstall fpc and lazurus. > My current installation is useless. > I found the steps on Wiki, but I used the docs on Wiki to install them > and it totally went wrong. The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal are correct. I just went over them and changed them so they are by default for FPC 2.2.2. Make sure you also remove the .lazarus directory in your home directory as described at the end. I guess most of your problems are related to that one in fact.

What about /etc/fpc.cfg? I don't see it mentioned in the uninstall. Is that location a legacy of older versions?

Tom

E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25 | Technische Universiteit Eindhoven FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands
Paul
to Jonas Maebe: The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninst…

----- Original Message -----

Earlier message 53 lines
From: "Jonas Maebe" To: "FPC-Pascal users discussions" Sent: Tuesday, September 02, 2008 11:08 AM Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus > > On 02 Sep 2008, at 09:05, Paul wrote: > >> I want to uninstall and reinstall fpc and lazurus. >> My current installation is useless. >> I found the steps on Wiki, but I used the docs on Wiki to install them >> and it totally went wrong. > > The uninstall steps on the wiki at > http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal > are correct. I just went over them and changed them so they are by > default for FPC 2.2.2. Make sure you also remove the .lazarus directory > in your home directory as described at the end. I guess most of your > problems are related to that one in fact. > > When you install next time, I would recommend not to install Lazarus > 0.9.24 first and to go directly with 0.9.25. As for FPC itself, please > use the official installer from http://www.freepascal.org and not the one > from http://www.hu.freepascal.org/lazarus, because I believe that at one > point in time the latter did not create a default FPC configuration file > (I don't know whether this has been fixed in the mean time). > > This means that it only works (worked) if you previously already > installed an FPC release and did not remove its configuration file (but > you will remove it by performing the uninstallation steps above). The > reason is that FPC configuration files are most of the time compatible > between different versions, because all paths include variables which are > replaced with the currently used FPC version. > > It's no problem to use the fpcsrc package from that page (or to install > the fpc-2.2.2 package from that page over an existing install of FPC). > > > Jonas > > PS: uninstalling stuff uninstalled using the default Mac OS X installer > /is/ unnecessarily hard and non-intuitive at this point. I have no idea > why after all this time Apple still have not added a simple uninstall > option. The only upside to this is that developers shy away as much as > possible from using an installer, and instead opt (where possible) for > drag-n-drop installations (whereby "uninstall" is reduced to "delete this > folder"). > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Paul
to Jonas Maebe: The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninst…

rm -fv $bin/ppcppc shows "permission denied"
Didn't test all subsequent items

Paul

Earlier message 54 lines
----- Original Message ----- From: "Jonas Maebe" To: "FPC-Pascal users discussions" Sent: Tuesday, September 02, 2008 11:08 AM Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus > > On 02 Sep 2008, at 09:05, Paul wrote: > >> I want to uninstall and reinstall fpc and lazurus. >> My current installation is useless. >> I found the steps on Wiki, but I used the docs on Wiki to install them >> and it totally went wrong. > > The uninstall steps on the wiki at > http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal > are correct. I just went over them and changed them so they are by > default for FPC 2.2.2. Make sure you also remove the .lazarus directory > in your home directory as described at the end. I guess most of your > problems are related to that one in fact. > > When you install next time, I would recommend not to install Lazarus > 0.9.24 first and to go directly with 0.9.25. As for FPC itself, please > use the official installer from http://www.freepascal.org and not the one > from http://www.hu.freepascal.org/lazarus, because I believe that at one > point in time the latter did not create a default FPC configuration file > (I don't know whether this has been fixed in the mean time). > > This means that it only works (worked) if you previously already > installed an FPC release and did not remove its configuration file (but > you will remove it by performing the uninstallation steps above). The > reason is that FPC configuration files are most of the time compatible > between different versions, because all paths include variables which are > replaced with the currently used FPC version. > > It's no problem to use the fpcsrc package from that page (or to install > the fpc-2.2.2 package from that page over an existing install of FPC). > > > Jonas > > PS: uninstalling stuff uninstalled using the default Mac OS X installer > /is/ unnecessarily hard and non-intuitive at this point. I have no idea > why after all this time Apple still have not added a simple uninstall > option. The only upside to this is that developers shy away as much as > possible from using an installer, and instead opt (where possible) for > drag-n-drop installations (whereby "uninstall" is reduced to "delete this > folder"). > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Jonas Maebe
to Tom Verhoeff: What about /etc/fpc.cfg? I don't see it mentioned in the uninstall. Is that location a…
Tom Verhoeff wrote 14 lines
On Tue, Sep 02, 2008 at 10:08:36AM +0100, Jonas Maebe wrote: > > On 02 Sep 2008, at 09:05, Paul wrote: > >> The uninstall steps on the wiki at > http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal > are correct. I just went over them and changed them so they are by > default for FPC 2.2.2. Make sure you also remove the .lazarus > directory > in your home directory as described at the end. I guess most of your > problems are related to that one in fact. What about /etc/fpc.cfg? I don't see it mentioned in the uninstall. Is that location a legacy of older versions?

No, it's not legacy. I've added it.

Jonas

Jonas Maebe
to Paul: rm -fv $bin/ppcppc shows "permission denied" Didn't test all subsequent items Paul -----…
Paul wrote
> The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal rm -fv $bin/ppcppc shows "permission denied" Didn't test all subsequent items

<quote>
"You can copy and save the commands below to file uninstallLaz.sh and run it if you need to uninstall Lazarus and Free Pascal. You can usually install newer versions of Lazarus and Free Pascal over older versions, but as with most software it's not a bad idea to clean out everything before you install a newer version. This list of commands should also give you a sense of where the various pieces of Lazarus and Free Pascal are located."

[ commands ]

To run this script, change to the directory where it's stored and enter:

chmod +x uninstallLaz.sh
sudo ./uninstallLaz.sh

Then enter your password when prompted.
</quote>

Or you can, as Damien Gerard mentioned, directly prefix all commands with "sudo".

Jonas

Paul
to Jonas Maebe: <quote> "You can copy and save the commands below to file uninstallLaz.sh and run it if…
Show quoted text 19 lines
<quote> "You can copy and save the commands below to file uninstallLaz.sh and run it if you need to uninstall Lazarus and Free Pascal. You can usually install newer versions of Lazarus and Free Pascal over older versions, but as with most software it's not a bad idea to clean out everything before you install a newer version. This list of commands should also give you a sense of where the various pieces of Lazarus and Free Pascal are located." [ commands ] To run this script, change to the directory where it's stored and enter: chmod +x uninstallLaz.sh sudo ./uninstallLaz.sh Then enter your password when prompted. </quote>

Just did this, no error reported but Lazarus still starts up ...

Paul

Damien Gerard
to Paul
Paul wrote 11 lines
> sudo rm -f /usr/local/bin/ppcppc what to use for: rm -r $share/lazarus ... rm -r $lib/fpc rm -r $receipts/lazarus-*.pkg ... ? Paul

rm -rf /usr/local/share/lazarus/
rm -rf /usr/local/share/fpcsrc/
rm -rf /usr/local/share/examples/fpc*
rm -rf /usr/local/share/doc/fpc*
rm -rf /usr/local/lib/fpc/
rm -rf /Library/Receipts/fpc*
rm -rf /private/etc/fpc.cfg*
rm -rf /usr/local/bin/fpc
rm -rf /usr/local/bin/fpcmake
rm -rf /usr/local/bin/fpcmkcfg

And you will have a clean uninstall.
However, as already said, all is explained here http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal

All paths are given :
bin=/usr/local/bin
share=/usr/local/share
lib=/usr/local/lib
receipts=/Library/Receipts

Damien Gerard Si ces robots s'humanisaient, inversement les êtres humains se robotiseraient-ils ?
Mattias Gaertner
to Paul: I have a printed copy here and have executed all commands manually.(no errors displayed)…
Show quoted text 7 lines
>However, as already said, all is explained here >http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal I have a printed copy here and have executed all commands manually.(no errors displayed) Still, Lazarus starts, except it cant find fpc

Use spotlight (Cmd+Space) to find lazarus, tell us where you found it and delete it.

Mattias

Paul
to Mattias Gaertner

Yes, and entered them each seperately in terminal also.

Paul

Earlier message 26 lines
----- Original Message ----- From: "Mattias Gaertner" To: Sent: Tuesday, September 02, 2008 4:48 PM Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus > On Tue, 2 Sep 2008 16:29:49 +0200 > "Paul" wrote: > >> >> > Use spotlight (Cmd+Space) to find lazarus, tell us where you found >> > it and delete it. >> > >> > Mattias >> >> Seems nothing was deleted at all , including fpc ... :-( > > Have you put all commands into a script and executed the script? > > Mattias > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Jonas Maebe
to Paul
Paul wrote
Yes, and entered them each seperately in terminal also.

Please post the full terminal session in which you entered the commands to the mailing list (just copy/paste everything from the window).

Jonas

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
On Tue, 2 Sep 2008 17:13:11 +0200 "Paul" wrote: > Yes, and entered them each seperately in terminal also. The commands do not work in terminal (because the variables are not assigned with export). They work only in a script.

No, that should also work in terminal:

firefly:~ jmaebe$ a=5
firefly:~ jmaebe$ echo $a
5
firefly:~ jmaebe$

The reason it won't work in terminal is because the sudo's are missing (but then you should get "permission denied" errors, even with rm -f -- except if the directories don't exist because you entered a wrong path, in which case nothing will be printed).

Jonas

Paul
to Jonas Maebe

I can't post them anymore, I closed all applications and switched of the computer (incl power - had to move the pc)
I didn't any errors though and needed to enter my password each time. (luckely, I left it empty for the moment)
I also removed many of the files manually, but propably not all. I will search for other files also (config's ..)

Anyways, I still don't know where it went wrong: all I did was install fpc2.2.2 with the dmg and the same with Lazarus (snapshot) I did not install the source files then, maybe that's a problem. None of the fpc folders were listed in the Lazarus environment settings.

Paul

Earlier message 37 lines
----- Original Message ----- From: "Jonas Maebe" To: "FPC-Pascal users discussions" Sent: Tuesday, September 02, 2008 5:35 PM Subject: Re: [fpc-pascal] Best method to uninstall fpc and lazarus > > On 02 Sep 2008, at 16:31, Mattias Gaertner wrote: > >> On Tue, 2 Sep 2008 17:13:11 +0200 >> "Paul" wrote: >> >>> Yes, and entered them each seperately in terminal also. >> >> The commands do not work in terminal (because the variables are not >> assigned with export). They work only in a script. > > No, that should also work in terminal: > > firefly:~ jmaebe$ a=5 > firefly:~ jmaebe$ echo $a > 5 > firefly:~ jmaebe$ > > The reason it won't work in terminal is because the sudo's are missing > (but then you should get "permission denied" errors, even with rm -f -- > except if the directories don't exist because you entered a wrong path, > in which case nothing will be printed). > > > Jonas > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Mattias Gaertner
to Jonas Maebe: No, that should also work in terminal: firefly:~ jmaebe$ a=5 firefly:~ jmaebe$ echo $a 5…
Show quoted text 12 lines
On 02 Sep 2008, at 16:31, Mattias Gaertner wrote: > On Tue, 2 Sep 2008 17:13:11 +0200 > "Paul" wrote: > >> Yes, and entered them each seperately in terminal also. > > The commands do not work in terminal (because the variables are not > assigned with export). They work only in a script. No, that should also work in terminal:

Sorry. You are right.

Mattias

Show quoted text 15 lines
firefly:~ jmaebe$ a=5 firefly:~ jmaebe$ echo $a 5 firefly:~ jmaebe$ The reason it won't work in terminal is because the sudo's are missing (but then you should get "permission denied" errors, even with rm -f -- except if the directories don't exist because you entered a wrong path, in which case nothing will be printed). Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe
to Paul: I can't post them anymore, I closed all applications and switched of the computer (incl…
Paul wrote
I can't post them anymore, I closed all applications and switched of the computer (incl power - had to move the pc) I didn't any errors though and needed to enter my password each time.

That is pretty strange, because "sudo" caches the password (or credentials) for about 5 minutes.

(luckely, I left it empty for the moment) I also removed many of the files manually, but propably not all. I will search for other files also (config's ..)

You can also delete everything from the Finder instead:

cmd-shift-g
-> type in /usr/local/share (you can use tab completion) -> in the opened window, drag the lazarus folder to the trash -> type in your password
-> empty the trash

It's similar for the other files (cmd-shift-g -> type in the parent directory of the files you want to delete -> select the to be deleted file(s), drag them to the trash).

If in the cmd-shift-g directory you enter just "/usr", you can also traverse the entire /usr hierarchy from the Finder if you want to.

Regarding earlier mentions of using Spotlight: Spotlight by default does not search /usr etc if invoked from the gui (it does when you use it, using mdfind, from the command line). You can however tell it to also search such files from the GUI, as explained e.g. here: http://www.macworld.com/article/60711/2007/10/spotsyssearch.html

So I don't really understand this previous mail from you:

***

Use spotlight (Cmd+Space) to find lazarus, tell us where you found it and delete it. Mattias

Seems nothing was deleted at all , including fpc ... :-( ***

since by default Spotlight wouldn't show your fpc or lazarus installation in the first place.

Anyways, I still don't know where it went wrong: all I did was install fpc2.2.2 with the dmg and the same with Lazarus (snapshot) I did not install the source files then, maybe that's a problem.

I doubt it.

None of the fpc folders were listed in the Lazarus environment settings.

I also have no idea what went wrong, neither during the installation nor during the removal.

Jonas

PS: just to make sure: make sure you also remove the .lazarus directory (or its contents) in your home directory (using the instructions posted earlier).

Paul
to Jonas Maebe
That is pretty strange, because "sudo" caches the password (or credentials) for about 5 minutes.

I've typed all commands within 5 minutes and had to enter the password for each command.

Installing FPC and Lazarus is the only thing I have installed on the iMac (just have it a few days)

Paul

Jonas Maebe
to Paul
Paul wrote 8 lines
> That is pretty strange, because "sudo" caches the password (or > credentials) for about 5 minutes. I've typed all commands within 5 minutes and had to enter the password for each command. Installing FPC and Lazarus is the only thing I have installed on the iMac (just have it a few days)

The next time, please copy/paste everything from the Terminal session into a mail, because too many strange things are going on here :)

Jonas