Sign in Join

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

Mailing lists / fpc-pascal / 2006-10

Unistalling FPC (and reinstalling from svn)

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Adrian Maier

Hello,

I have a silly question : which is the best way to uninstall FPC ? I have used
the 2.0.4 tarball (Linux) and the install script included within. I chose to install
it in /usr/local.

Now, I need to compile from sources (so debug some problems with sqldb) and i want to make sure that there are no files left from the initial FPC.

Unfortunately, there is no uninstall script and I need to delete individual files manually ; which is not extremely difficult but i can't be sure that
i haven't missed some files (for example the man pages and the executables in /usr/local/bin ).

Also, after compiling FPC with 'make build' , if i execute 'make install' will it
copy everyting in /usr/local by default ? Is the destination directory configurable
somehow?

Adrian Maier
Jochem Berndsen
to Adrian Maier
Adrian Maier wrote
I have a silly question : which is the best way to uninstall FPC ?

I don't know.

Show quoted text 5 lines
Also, after compiling FPC with 'make build' , if i execute 'make install' will it copy everyting in /usr/local by default ? Is the destination directory configurable somehow?

Yes. You can choose the installation directory using make install INSTALL_PREFIX=/path/to/install
(For example,
make install INSTALL_PREFIX=/usr/local
This will create bin/ and lib/ and other directories if they do not exist already.)

Jochem.

Marco van de Voort
to Adrian Maier: I have a silly question : which is the best way to uninstall FPC ? I have used the…
Show quoted text 5 lines
I have a silly question : which is the best way to uninstall FPC ? I have used the 2.0.4 tarball (Linux) and the install script included within. I chose to install it in /usr/local.

No automatic way. Maybe the script should keep a filelist of what it installs somehow.

Everything sqldb related is in the /usr/local/lib/fpc/<version> dir.

Just delete that, and clean up /usr/local/bin as good as you can, but it is not THAT important.

Show quoted text 6 lines
Also, after compiling FPC with 'make build' , if i execute 'make install' will it copy everyting in /usr/local by default ? Is the destination directory configurable somehow?

make install INSTALL_PREFIX=/usr/exp/

Adrian Maier
to Jochem Berndsen: I don't know. Yes. You can choose the installation directory using make install…
Jochem Berndsen wrote 15 lines
On Friday 06 October 2006 10:49, Adrian Maier wrote: > I have a silly question : which is the best way to uninstall FPC ? I don't know. > Also, after compiling FPC with 'make build' , if i execute 'make > install' will it > copy everyting in /usr/local by default ? Is the destination > directory configurable > somehow? Yes. You can choose the installation directory using make install INSTALL_PREFIX=/path/to/install (For example, make install INSTALL_PREFIX=/usr/local This will create bin/ and lib/ and other directories if they do not exist already.)

Indeed, make install INSTALL_PREFIX=/usr/local worked like a charm. I did not delete anything , because apparently the 'make install' target needs to
have the previous fpc still installed (i haven't verified this assumption well, but after
deleting the old fpc : 'make install' gave some errors and i had to re-install the old fpc).
The newly compiled freepascal is the same version as the old one, so I assume that
it simply replaced the files.

Perhaps it would be nice to have in the sources directory a README file describing
how to compile and install from sources? Many opensource projects have such a files included with the source files .

Thanks !
Adrian Maier