LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-10-2012, 01:54 PM   #1
aconnor
LQ Newbie
 
Registered: Oct 2011
Posts: 11

Rep: Reputation: Disabled
Symbolic link


Hi,

I am trying configure php 5.4.3 from source on a ubuntu 12.04 server build using this switch --with-ldap=/usr i get this error:

configure: error: Cannot find ldap libraries in /usr/lib.

So i change to --with-ldap=/usr/include

Then i get this error:

configure: error: Cannot find ldap.h

So i find ldap.h in /usr/include

I want to create a sym link for the /include directory in the /usr/lib directory, so the config might see ldap.h.

I have tried ln -s /usr/include/ /usr/lib and ln -s /usr/include/ldap.h /usr/lib/ but i still get the same error.

Have i got my commands right?
 
Old 05-10-2012, 02:05 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Your syntax is right. Did you verify the perms of the file?
 
Old 05-10-2012, 03:24 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I learned somewhere to always create symlinks by doing what I call "linking IN". This means that I create the link while I am in the directory where link will reside.

eg--suppose I want a symlink in /home/username, and the file is /etc/stuff/thefile:

cd /home/username
ln -s /etc/stuff/thefile linktothefile

the name of the link does not have to be different--thus this is legal also:
ln -s /etc/stuff/thefile thefile

All this assumes write privileges on the directory where you are creating the link
 
1 members found this post helpful.
Old 05-11-2012, 03:16 AM   #4
aconnor
LQ Newbie
 
Registered: Oct 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
sym link

Permissions on the directory /usr/lib: drwxr-xr-x 53 root root 4096 May 11 09:06 lib

I chmod 777 the ldap.h file.

Then ran ln -s /usr/include/ldap.h /usr/lib/ i also tried ln -s /usr/include/ldap.h .

Both create the link it appears as : lrwxrwxrwx 1 root root 19 May 11 09:00 ldap.h -> /usr/include/ldap.h

Still the same error when php is compiled.
 
Old 05-11-2012, 10:19 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
first, you don't need "777" privileges---all the compiler needs is to read the file.

Having created the symlink, can you access the file from some random location?<<<edit--if you can't access it, then neither can the compiler>>>

Last edited by pixellany; 05-11-2012 at 10:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 06:47 AM
Symbolic Link metallica1973 Linux - Networking 4 08-31-2008 11:13 PM
symbolic link manolakis Linux - Newbie 1 05-08-2008 07:40 PM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
symbolic link ilnli Slackware 6 01-04-2005 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration