Sign in Join

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

Mailing lists / lazarus / 2008-05

Linux Installation Advise

11 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Lee Jenkins

Hi all,

I've loaded a new VirtualBox image with CentOS 5 and as usual, I've having a little bit of trouble installing from sources, no doubt because of my limited linux knowledge to date.

The biggest challenge that I have is ensuring that all required libraries are installed. Would you recommend that I first install RPM of latest snapshot to ensure that all required libs are installed and then just download latest trunk to a new directory and and build from there?

If anyone has any proven strategies for installing on linux, I'd appreciate you sharing them.

p.s. I have been reading over wiki, which is where I ran into trouble :)

Hope everyone is having a great weekend.

Warm Regards, Lee

Reply by email

ik
to Lee Jenkins

I'd never used Lazarus with CentOS (it is a server distro for Linux, and it is not suitable enough for desktop use, use Fedora for desktop use instead if you wish to have redhat approach).

For GTK2, you should install libgtk2* that is the libraries of GTK2 and also do not forget to install pixbuf of GTK2.
The same for GTK1.2 (but who use it this days anyway ?!)

After you have installed all of the above, you can compile (don't you have a spec file for creating Lazarus in RPM ?!) and install Lazarus.

Ido

Lee Jenkins wrote 29 lines
Hi all, I've loaded a new VirtualBox image with CentOS 5 and as usual, I've having a little bit of trouble installing from sources, no doubt because of my limited linux knowledge to date. The biggest challenge that I have is ensuring that all required libraries are installed. Would you recommend that I first install RPM of latest snapshot to ensure that all required libs are installed and then just download latest trunk to a new directory and and build from there? If anyone has any proven strategies for installing on linux, I'd appreciate you sharing them. p.s. I have been reading over wiki, which is where I ran into trouble :) Hope everyone is having a great weekend. -- Warm Regards, Lee _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lee Jenkins
to ik
ik wrote
I'd never used Lazarus with CentOS (it is a server distro for Linux, and it is not suitable enough for desktop use, use Fedora for desktop use instead if you wish to have redhat approach).

Hmmm. I'm no distro expert by any stretch, Ido but isn't it the same if I don't choose all the server related software on install and choose the desktop oriented path?

For GTK2, you should install libgtk2* that is the libraries of GTK2 and also do not forget to install pixbuf of GTK2. The same for GTK1.2 (but who use it this days anyway ?!)

I found this out last night since even the lazarus snapshot RPM's don't seem to indicate these as dependencies, maybe assumed that they already exist on the machine and the person installing has a modicum of knowledge about GUI development on Linux ;)

After you have installed all of the above, you can compile (don't you have a spec file for creating Lazarus in RPM ?!) and install Lazarus.

No, I don't. Is there another use for a spec file other than creating an RPM?

Thanks!

Warm Regards, Lee

Reply by email

ik
to Lee Jenkins
Lee Jenkins wrote 8 lines
ik wrote: > I'd never used Lazarus with CentOS (it is a server distro for Linux, > and it is not suitable enough for desktop use, use Fedora for desktop > use instead if you wish to have redhat approach). Hmmm. I'm no distro expert by any stretch, Ido but isn't it the same if I don't choose all the server related software on install and choose the desktop oriented path?

Ammm, not really.on CentOS, the pacakges are more stable -> older and more mature .
On Fedora they are newer, and less stable (because we worked with them less time, and it had less updates).

Show quoted text 9 lines
> For GTK2, you should install libgtk2* that is the libraries of GTK2 > and also do not forget to install pixbuf of GTK2. > The same for GTK1.2 (but who use it this days anyway ?!) I found this out last night since even the lazarus snapshot RPM's don't seem to indicate these as dependencies, maybe assumed that they already exist on the machine and the person installing has a modicum of knowledge about GUI development on Linux ;)

Then the person that created the spec file didn't create it properly imho.

Show quoted text 6 lines
> After you have installed all of the above, you can compile (don't you > have a spec file for creating Lazarus in RPM ?!) and install Lazarus. > No, I don't. Is there another use for a spec file other than creating an RPM?

SPEC/SRPM are used for creating RPM package using rpmbuild.

Show quoted text 8 lines
Thanks! -- Warm Regards, Lee

Ido

Reply by email

Joost van der Sluis
to ik: Ammm, not really.on CentOS, the pacakges are more stable -> older and more mature . On…

Op zondag 18-05-2008 om 17:01 uur [tijdzone +0300], schreef ik:

Show quoted text 11 lines
> I found this out last night since even the lazarus snapshot RPM's don't seem to > indicate these as dependencies, maybe assumed that they already exist on the > machine and the person installing has a modicum of knowledge about GUI > development on Linux ;) Then the person that created the spec file didn't create it properly imho.

Oh, yes he did. He also thought about the fact that people want to use these rpm's on different distributions. And all those distributions have different names for all those packages.

If all the dependencies were added, it would only install on one distribution.

If you need to install Lazarus/fpc on your distribution, just use the packages provided by that distribution. If they don't provide those, start complaining or send patches to the people of that distribution. While you're doing that, you can try to find some info on the wiki on how to install fpc/lazarus on your distribution.

If you want to install snapshots, we assume that you know what you're doing. It's always smart to install a released rpm provided by your distritution first. Then install a snapshot afterwards.

Joost

Reply by email

Mattias Gaertner
to ik: added to my todo list... Ido http://ik.homelinux.org/
Show quoted text 10 lines
added to my todo list... Ido On Sun, May 18, 2008 at 5:46 PM, Vincent Snijders wrote: > ik schreef: >> >> Then the person that created the spec file didn't create it >> properly imho.

What is missing?

The lazarus spec contains:
Requires: fpc-src = FPCSRCVERSION, fpc = FPCVERSION, gdk-pixbuf, gtk+, glibc, gdb

And the rpm building tools append a lot of dependencies automatically.

> Can you provide a patch?

Mattias

Reply by email

Joost van der Sluis
to Felipe Monteiro de Carvalho

Op maandag 19-05-2008 om 15:25 uur [tijdzone -0300], schreef Felipe Monteiro de Carvalho:

Show quoted text 5 lines
On Mon, May 19, 2008 at 3:09 PM, Mattias Gaertner wrote: > What is missing? The development packages, but each distribution names them differently.

And they should be added automatically if they are really used. Problem is that some development packages are needed, but not used bij the lazarus/fpc binaries itself. (for example the mysql-client devel packages)

Joost

Reply by email

Felipe Monteiro de Carvalho
to Joost van der Sluis
Joost van der Sluis wrote
And they should be added automatically if they are really used. Problem is that some development packages are needed, but not used bij the lazarus/fpc binaries itself. (for example the mysql-client devel packages)

No development packages are used by the lazarus/fpc binaries.

They are used only by the GNU linker.

Felipe Monteiro de Carvalho

Reply by email