Linking /tmp/project1 /usr/bin/ld: cannot find -lX11 lazarus / 1-Linux ---------------------------------------------------------------------- grantfullen · 2008-06-18 03:11 First time Linux user. I have opensuse 10 and Lazarus 0.9.24 it installed fine but when i try to compile a form1 hello world i get. granthost:~ # lazarus TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: miscellaneous options file not found - using defaults NOTE: codetools config file not found - using defaults NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= [TCustomFormEditor.CreateComponent] Class='TForm' TMainIDE.DoNewEditorFile end unit1.pas [TMainIDE.DoRunProject] A TMainIDE.DoInitProjectRun A True 0 TMainIDE.DoInitProjectRun B TMainIDE.DoSaveProject End TCompiler.Compile WorkingDir="/tmp/" CompilerFilename="/usr/bin/ppc386" CompilerParams=" -S2cgi -OG1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/i386-linux/ -Fu/usr/lib/lazarus/lcl/units/i386-linux/gtk2/ -Fu/usr/lib/lazarus/packager/units/i386-linux/ -Fu. -dLCL -dLCLgtk2 /tmp/project1.lpr" [TCompiler.Compile] CmdLine="/usr/bin/ppc386  -S2cgi -OG1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/i386-linux/ -Fu/usr/lib/lazarus/lcl/units/i386-linux/gtk2/ -Fu/usr/lib/lazarus/packager/units/i386-linux/ -Fu. -dLCL -dLCLgtk2 /tmp/project1.lpr" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Warning: You are using the obsolete switch -OG Free Pascal Compiler version 2.2.0 [2008/02/12] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Linux for i386 Compiling /tmp/project1.lpr Compiling unit1.pas Linking /tmp/project1 /usr/bin/ld: cannot find -lX11 project1.lpr(17,1) Error: Error while linking project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping TMessagesView.CollectLineParts WARNING: 11<>9 SrcLine=project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping                                                   I am a long time windows Delphi user and would love to start useing and developing apps for linux with  lazarus. BE NICE I know nothing about linux or lazarus. THanks for any comments or help. ---------------------------------------------------------------------- felipemdc · 2008-06-18 15:25 Take a look at the FAQ: http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_receive_an_error_duri ng_the_linking_that_states_.2Fusr.2Fbin.2Fld_can.27t_find_- l.3Csome_lib.3E ---------------------------------------------------------------------- grantfullen · 2008-06-18 21:18 Thanks for the replly. If someone could help me find the correct lib then i can try to get it installed. ---------------------------------------------------------------------- Marc · 2008-06-20 10:12 yum install libX11-devel More generic, if you get the message that library XXX wasn't found, run Code: [Select]rpm -q -f /usr/lib/libXXX.so.x.y.z This shows the package the library is in. To get the devel package, add -devel to the name ---------------------------------------------------------------------- sakuragi · 2008-06-22 03:26 and install libx11-devel error I still emerging, but there to do? something more detailed? greetings, use opensuse 10.3 thanks