LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   simlink not working (https://www.linuxquestions.org/questions/linux-newbie-8/simlink-not-working-4175534548/)

battles 02-19-2015 12:54 PM

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.

pan64 02-20-2015 01:05 AM

I would rather put a -I/usr/local/ssl/include somewhere into the makefile

battles 02-20-2015 07:49 AM

Quote:

Originally Posted by pan64 (Post 5320405)
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

pan64 02-20-2015 10:42 AM

probably yes, but not the right way to solve this issue. /openssl should not exist.

battles 02-20-2015 01:08 PM

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.

pan64 02-22-2015 03:04 AM

removing / before openssl would be a better solution, that is definitely mistyped.


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