/usr/bin/ld: cannot find -lX11; Error: Error while linking lazarus / 1-Linux ---------------------------------------------------------------------- vmallik_delphi · 2008-09-22 12:06 Hi All,    This is Mallik. I am new to Linux and Lazarus.    I installed Red Hat Enterprise Linux3 in VMWARE and I installed these    rpm files.        fpc-2.2.2rc2-20080722.i386.rpm        fpc-src-2.2.2rc2.20080722.i386.rpm        lazarus-0.9.25-20080722.i386.rpm    I got installed lazarus delphi Programming->More Programming Tools->Lazarus Delphi.    I tried to run hello world programme. I am getting this problem.         /usr/bin/ld: cannot find -lX11         Error: Error while linking    From last 3 days I am trying to solve this one but no progress. I added library paths in compile project options also.     Please help me. Have a great day. ---------------------------------------------------------------------- felipemdc · 2008-09-22 14:06 It's in 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 You need to install libX11-dev or something similar.