Recent

Author Topic: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3  (Read 16357 times)

ekopranoto

  • New member
  • *
  • Posts: 9
how i can fix this error ?

fpc-2.2.2-0.i386.rpm
lazarus-0.9.62.2-0.i386.rpm

REgards,
ekopranoto
« Last Edit: April 15, 2009, 06:45:20 am by ekopranoto »

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #1 on: April 15, 2009, 08:06:29 am »
update fpc

ekopranoto

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #2 on: April 15, 2009, 09:13:26 am »
thnk you so much.

ekopranoto

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #3 on: April 15, 2009, 10:56:36 am »
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

  • Full Member
  • ***
  • Posts: 168
    • Lazarus Support website
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #4 on: April 15, 2009, 01:13:51 pm »
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

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #5 on: April 15, 2009, 01:29:31 pm »
ups..

ekopranoto

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #6 on: April 15, 2009, 01:39:46 pm »
how to i recompile it ?

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #7 on: April 15, 2009, 01:58:52 pm »
1. make clean bigide
2. in lazarus IDE open configure build lazarus dialog, setup how you want to recompile and press build

ekopranoto

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #8 on: April 15, 2009, 02:25:45 pm »
pardon me,

where i typing "make clean bigide" ?

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #9 on: April 15, 2009, 04:25:40 pm »
in the console (terminal)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #10 on: April 15, 2009, 04:29:25 pm »
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

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #11 on: April 15, 2009, 10:13:24 pm »
@ 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

  • Full Member
  • ***
  • Posts: 168
    • Lazarus Support website
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #12 on: April 15, 2009, 11:11:57 pm »
yum install libXi-devel

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #13 on: April 16, 2009, 12:29:24 am »
type make bigide in the lazarus directory

ekopranoto

  • New member
  • *
  • Posts: 9
Re: /usr/bin/ld: cannot find -lXi Error: Error while linking Centos 5.3
« Reply #14 on: April 16, 2009, 04:04:06 am »
!'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
« Last Edit: April 16, 2009, 04:07:37 am by ekopranoto »

 

TinyPortal © 2005-2018