/usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3 lazarus / 1-Linux ---------------------------------------------------------------------- ekopranoto · 2009-04-15 04:43 how i can fix this error ? fpc-2.2.2-0.i386.rpm lazarus-0.9.62.2-0.i386.rpm REgards, ekopranoto ---------------------------------------------------------------------- Paul Ishenin · 2009-04-15 06:06 update fpc ---------------------------------------------------------------------- ekopranoto · 2009-04-15 07:13 thnk you so much. ---------------------------------------------------------------------- ekopranoto · 2009-04-15 08:56 I have install package, rpm -Uvh --nodeps fpc-2.2.4-1.i386.rpm rpm -Uvh fpc-2.2.4-1.src.rpm test application with database connect postgresql Fatal: Can't find unit LResources used by registersqldb ---------------------------------------------------------------------- Loesje · 2009-04-15 11:13 Because you added '--nodeps' you didn't saw that your Lazarus version isn't compiled for fpc. You have to re-compile Lazarus for fpc 2.2.4 ---------------------------------------------------------------------- ekopranoto · 2009-04-15 11:29 ups.. ---------------------------------------------------------------------- ekopranoto · 2009-04-15 11:39 how to i recompile it ? ---------------------------------------------------------------------- Paul Ishenin · 2009-04-15 11:58 1. make clean bigide 2. in lazarus IDE open configure build lazarus dialog, setup how you want to recompile and press build ---------------------------------------------------------------------- ekopranoto · 2009-04-15 12:25 pardon me, where i typing "make clean bigide" ? ---------------------------------------------------------------------- Paul Ishenin · 2009-04-15 14:25 in the console (terminal) ---------------------------------------------------------------------- Vincent Snijders · 2009-04-15 14:29 OTOH, I think you are missing some development rpm package that installs libXi.so So changing the compiler version won't change a thing. ---------------------------------------------------------------------- ekopranoto · 2009-04-15 20:13 @ Vincent: yum install libXi Package libXi-1.0.1-3.1.i386 already installed and latest version @ Paul: I mean, where directory position when typing "make clean big ide" ---------------------------------------------------------------------- Loesje · 2009-04-15 21:11 yum install libXi-devel ---------------------------------------------------------------------- Paul Ishenin · 2009-04-15 22:29 type make bigide in the lazarus directory ---------------------------------------------------------------------- ekopranoto · 2009-04-16 02:04 !'d solve the problem with this way... after rpm -ivh fpc-2.2.2-0.i386.rpm fpc-src-2.2.2-081004.i386.rpm lazarus-0.9.26.2-0.i386.rpm lazarus-debuginfo-0.9.26.2-0.i386.rpm using yum install libX* will show bunch of file installed (choose Y of course) and... Linking /tmp/project1                                                                                                                                                   5295 lines compiled, 9.2 sec                                                                                                                                            2 hint(s) issued                               Thankyou for everyone suggestion... and thankyou for time spend to solve this problem                                                                                                                         @ Paul: I need step by step detail when re-compiling lazarus for fpc.2.2.4 btw thanks a lot