LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2015, 01:54 PM   #1
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 231

Rep: Reputation: 5
simlink not working


I have a user: mim that has within it a folder /mimmim and within that, a folder called
/Src. user: mim has root privileges.

There is an Install file in /home/mim/ that uses a file in /Src called pgp.h. pgp.h references a file /openssl/opensslv.h. The opensslv.h is actually in the newer openssl installations here: /usr/local/ssl/include/openssl/

I tried to do a 'sudo ln -s /usr/local/ssl/include/openssl openssl' from /home/mim/, as well as from within the /home/mim/mimmim/ and from within /home/mim/mimmim/Src/. I still get this error however:

pgp.h:16:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.

I guess I am not sim linking correctly.
 
Old 02-20-2015, 02:05 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
I would rather put a -I/usr/local/ssl/include somewhere into the makefile
 
Old 02-20-2015, 08:49 AM   #3
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 231

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by pan64 View Post
I would rather put a -I/usr/local/ssl/include somewhere into the makefile
Thanks, I'll try that.

What I found and tried later was that there are two types of references to openssl in the .h and .c code modules. There were references to openssl and to /openssl. So I tried this that seemed to fix the problem:

sudo ln -s /usr/local/ssl/include/openssl openssl
sudo ln -s /usr/local/ssl/include/openssl /openssl
 
Old 02-20-2015, 11:42 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
probably yes, but not the right way to solve this issue. /openssl should not exist.
 
Old 02-20-2015, 02:08 PM   #5
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 231

Original Poster
Rep: Reputation: 5
Some of the code I was having trouble with:

# include <openssl/stack.h>
# include </openssl/safestack.h>

If I did just a 'sudo ln -s /usr/local/ssl/include/openssl openssl', it wouldn't cover the /openssl.
Doing this 'sudo ln -s /usr/local/ssl/include/openssl /openssl' fixed the problem.

I don't know anything about the language the includes are a part of.

Thanks.
 
Old 02-22-2015, 04:04 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
removing / before openssl would be a better solution, that is definitely mistyped.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a simlink after gcc-4.4.1 package has been installed junust Linux From Scratch 14 06-28-2012 12:43 PM
[SOLVED] fsck.btrfs doesn't skip check on root if fstab uses wrong simlink with lvm. lumak Slackware 1 04-30-2011 06:32 PM
Can I use simlink of matlab in Fedora? googlez Linux - Newbie 1 07-08-2009 02:41 AM
[SOLVED] Reducing HD read/write with a ramdrive: is it better to simlink or to mount mike11 Linux - Hardware 6 06-29-2009 03:39 AM
Make Me a Simlink lectraplayer Linux - Newbie 5 12-11-2003 11:12 PM


All times are GMT -5. The time now is 04:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration