Lazarus 0.9.6 inder mandrake lazarus / 1-Linux ---------------------------------------------------------------------- guest · 2005-03-14 16:42 I intalled Lazarus 0.9.6 under Mandrake linux 10.1. When I compile the first project, in a experimental trial, I receive the message: /usr/bin/ld: cannot find -lglib project1.lpr(14,1) Error: Error while linking Someone of you can help me? regards Ricardo São Paulo - Brazil P.S.: I´m a linux novice ---------------------------------------------------------------------- Almindor · 2005-03-15 10:52 You need to install glibc package(probably) via the package manager. I am not sure why tho AFAIK FPC doesn't use libc unless you explicitly say so. ---------------------------------------------------------------------- nightrider · 2005-03-15 12:58 The question was posted by me. As I am a novice in linux, may you(or any other) explain how I obtain the library you suppose is not present? Thanks a lot ---------------------------------------------------------------------- Lightning · 2005-03-15 20:23 Mandrake is a easy and quite intuitive distro, use Install Packages and look for a similar name to glib, personally i select packages wich i "think" (not i don't know) might be useful. You can't know all those packages, they are too many, but try to remember those important like gtkpixbuf, glib, etc. You might also need to manually set permisons on your /usr subfolders. ---------------------------------------------------------------------- nightrider · 2005-03-16 00:30 I found a library, but nothing happen... I become to remember my previous experience with linux... Everybody treat you as you are an expert. Nobody give details about anything. I though that people must be an expert to use linux. I though during 5 years... ---------------------------------------------------------------------- Marc · 2005-03-16 17:38 have you installed the glib-devel package ? ---------------------------------------------------------------------- Anonymous · 2005-03-16 23:27 Well here we go again! The show just begins! I downloaded the file: glib-2.6.3.tar.gz Then in the directory /local/usr/src I give following command after a "su": tar -xvzf glib-2.6.3.tar.gz It runs ok! Well, I close de window and open another one(note that I'm with normal user now). Then I run Lazarus. Put a button on the form and then Ctrl-F9! Snif! The error persists... (And then I'd  cry) Where I made a mistake? Or the library I use is not the correct one? May I delete the "tar.gz" and the directory generated? ---------------------------------------------------------------------- juan · 2005-03-17 01:41 There's no need to download any package if you have the cd. Just use the "Install Software" application and search for glib, then install the package called glib-devel or something. I prefer to look for files instead of package names (if you search for package name look for libglib instead). You can use this for any missing lib, just strip the "-l" from the error message, that's why you must search for glib when the message says -lglib. I hope this helps, sorry for my poor english. P.S.: Try to avoid installing system libraries as tarballs if you're not sure about you're doing, use rpm instead (or deb, for those using debian) ---------------------------------------------------------------------- nightrider · 2005-03-17 23:31 Hi Juan (and everyone who read this) I run "Install Software" and try to find glib-devel  and libglib as you said. Nothing was found. Thanks a lot, of course. (My english is poor too) For every other people:: Any other smart idea? Are you really sure that Lazarus applications run under Linux Mandrake 10.1? I became to have doubts... ---------------------------------------------------------------------- Lightning · 2005-03-18 11:57 Man, you must be joking, i run Lazarus personally on Mandrake 10.0 and Almindor runs it on Mandrake 10.1 do you think we really are experts ? I had Red Hat 9 before this and i still found a way to install packages, just use install packages and check that list, there are more categories, see developement and and other categories, i didn't even select that package i just selected some other apps and it was automatically selected, didn't have ANY problems. You should have no doubts Lazarus runs on ANY Linux distro that has the right packages installed, and use the .rpm packages wich are mostly on the CD, later you can also use the online update feature to get newer versions. ---------------------------------------------------------------------- nightrider · 2005-03-18 15:35 The comment about Lazarus applications was a joke. The fact is that in the linux installed in my machine a link editing error is ocurring. This is a fact, I repeat. I use all defaults during installation. I try to find the glib-devel and libglib in my packages list and Mandrake's 10.1 the tool of search didn't find them. I download the installation CD's of Mandrake and verify MD5 hashcode before do the installation. I download a version of glib-devel from iNet and untar. Nothing happen. This is a fact too. I have no ways of use Lazarus at this moment. This is also fact. No offense for everyone. I'm only trying to put my Lazarus operational. The facts suggest for me that I must use Win32 Lazarus version. I have no skill to put the linux version operational. ---------------------------------------------------------------------- Almindor · 2005-03-19 22:13 If you have no glid-devel in you packages it means one of 2 possible things: 1. You could already have it installed but that would mean your paths are not right(LD_LIBRARY_PATH) 2. You could have installed from a minimalistic CD or something or have broken the urpmi tool somehow. I suspect #1 but it's a tad strange in the least.. I think it's near impossible to help you via forums. Perhaps setting an ssh accoun could do it but then again you'd have to set it up on your machine add a user etc. which is no easy task. Perhaps using windows is best for now. Linux takes some time to get used to. ---------------------------------------------------------------------- Anonymous · 2005-03-20 00:00 My linux is a recent installation.  The LD_LIBRARY_PATH variable  and any other environment variables was NOT modified manually. I installed linux mandrake 10.1 from a 3 CD kit downloaded from mandrakes's site and with their MD5 hash code verified before installation. I have installed Firefox, Opera , Lazarus and Netbeans (a java development IDE see www.netbeans.org ).  Nothing more. Netbeans runs without problems and without any additional manual intervention. The only manual interventions I do was that suggest here. The fact of have problems only with Lazarus suggest that there is something I don't know about  it. What is the correct contents of the environment variable I must have in your opinion? Please??? ---------------------------------------------------------------------- Tsapi · 2005-03-20 08:37 Hi, I think the problem is in Mandrake the libraries, which Lazarus uses to compile the programs, have a little bit different names. I mean, for example, Lazarus expects to find "libglib.so", while the library is "libglib-1.2.so" or "libglib.so.1" or something like that. You have to manually create so called "soft links" to help Lazarus find the needed libs. For example ln -s libglib-1.2.so libglib.so ---------------------------------------------------------------------- Marc · 2005-03-21 13:15 Creating a link is one of the things what the -devel package does for you. Indeed creating those symlinks yourself is a solution, but you should be able to install a devel package. ---------------------------------------------------------------------- Anonymous · 2005-03-27 00:26 Epilog: The theory of "Tsapi" was right. With help of MR. Alexandre Leclerc from Canada I made the soft links to liblglib's and linkage editing functions OK. Lazarus is running OK. Thank for everybody. ---------------------------------------------------------------------- Anonymous · 2005-04-07 20:56 A heads up; if you have Mandrake 10.1, do NOT update any of your packages. Due to an update, lazarus gets uninstalled along with pixbuf-dev. Back to square 1.