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

Mailing lists / fpc-pascal / 2008-09
25 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Paul wroteI 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").
What about /etc/fpc.cfg? I don't see it mentioned in the uninstall. Is that location a legacy of older versions?
Tom
The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninst…
----- Original Message -----
The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninst…
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
Paul
sudo rm -f /usr/local/bin/ppcppc
What about /etc/fpc.cfg? I don't see it mentioned in the uninstall. Is that location a…
No, it's not legacy. I've added it.
Jonas
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
>> The uninstall steps on the wiki at >> http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal
I'm getting doubts about the Mac now, it opens perfectly with IE on Windows, but gives a blank text on Safari, only the menu on the right side is visible.
I will type them manually.
I have no intention to connect the Mac with my network anymore.
Paul
<quote> "You can copy and save the commands below to file uninstallLaz.sh and run it if…
Just did this, no error reported but Lazarus still starts up ...
Paul
sudo rm -f /usr/local/bin/ppcppc Damien Gerard Si ces robots s'humanisaient, inversement…
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
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
On Tue, 2 Sep 2008 16:17:25 +0200 Use spotlight (Cmd+Space) to find lazarus, tell us…
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 ... :-(
I have a printed copy here and have executed all commands manually.(no errors displayed)…
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
Yes, and entered them each seperately in terminal also.
Paul
Paul wroteYes, 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
Yes, and entered them each seperately in terminal also. Paul ----- Original Message -----…
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.
Mattias
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
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
No, that should also work in terminal: firefly:~ jmaebe$ a=5 firefly:~ jmaebe$ echo $a 5…
Sorry. You are right.
Mattias
I can't post them anymore, I closed all applications and switched of the computer (incl…
Paul wroteI 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).
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
The next time, please copy/paste everything from the Terminal session into a mail, because too many strange things are going on here :)
Jonas