LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   application install doesn't see ncurses or openssl... why?! (http://www.linuxquestions.org/questions/debian-26/application-install-doesnt-see-ncurses-or-openssl-why-487952/)

punt 09-29-2006 07:27 AM

application install doesn't see ncurses or openssl... why?!
 
I've tried this 394934 times. I installed libncurses5 and libncurses5-devel as well as openssl from source and from apt-get.

Here is what I have right now:

Code:

$ apt-cache policy libncurses5
libncurses5:
  Installed: 5.4-4
  Candidate: 5.4-4
  Version Table:
 *** 5.4-4 0
        500 http://ftp.de.debian.org stable/main Packages
        100 /var/lib/dpkg/status

$ apt-cache policy openssl
openssl:
  Installed: 0.9.7e-3sarge2
  Candidate: 0.9.7e-3sarge2
  Version Table:
 *** 0.9.7e-3sarge2 0
        500 http://security.debian.org stable/updates/main Packages
        100 /var/lib/dpkg/status
    0.9.7e-3sarge1 0
        500 http://ftp.de.debian.org stable/main Packages

The application requires SSL, and when I try "make menuconfig," I get the following:

Code:

SSL-Support: No openssl found. Get openssl at www.openssl.org
Creating Makefile[*] Creating Menu, please wait.
This needs the ncurses library. If it is not available, menuconf wont work. If you are using curses, use make menuconfig-curses instead.
make: *** [menuconfig] Error 1

I'm not sure why this is happening but I've literally spent days on this problem and have had no results. Please advise.

Dutch Master 09-29-2006 07:38 AM

Your question was: why? Well, I don't know. It would help if you state what application you're trying to install. Did you read the man pages to find if there is a way to specify the full path to SSL and ncurses?

punt 09-29-2006 07:41 AM

I just tried a later version (latest) and it still doesn't show openssl.

The code itself looks for openssl in the following locations. I've confirmed it's in two of those.

Code:

#ifndef SSLPATH
    char *sslblist[]={
        "/bin/openssl",
        "/usr/bin/openssl",
        "/usr/sbin/openssl",
        "/usr/local/bin/openssl",
        "/usr/local/ssl/bin/openssl",
        NULL
    };

An openssl executable is in both /usr/bin/openssl and /usr/local/ssl/bin/openssl.

The applications is psyBNC. I'm trying to fix this for a friend; I'm not a Debian user in general.

Dutch Master 09-29-2006 10:10 AM

In that case I'm just as confused as you are. Maybe contact the authors of psyBNC for their advise?

HappyTux 09-29-2006 10:55 AM

You need libssl-dev or at least that is what it is called on testing/unstable if not the same in stable use apt-cache search ssl dev to find it. If you don't have the configured kernel source tree on this machine then you are also going to need the kernel-headers package for the running kernel installed along with the module-assistant package to use the m-a prepare command to get the headers linked properly and then hopefully the source compile only needs the headers to actually compile properly.

punt 09-30-2006 06:37 PM

Quote:

Originally Posted by HappyTux
You need libssl-dev or at least that is what it is called on testing/unstable if not the same in stable use apt-cache search ssl dev to find it. If you don't have the configured kernel source tree on this machine then you are also going to need the kernel-headers package for the running kernel installed along with the module-assistant package to use the m-a prepare command to get the headers linked properly and then hopefully the source compile only needs the headers to actually compile properly.

I'm not sure what you mean. As far as I can tell, I already have that:

Code:

# apt-cache policy libssl-dev   
libssl-dev:
  Installed: 0.9.7e-3sarge2
  Candidate: 0.9.7e-3sarge2
  Version Table:
 *** 0.9.7e-3sarge2 0
        500 http://security.debian.org stable/updates/main Packages
        100 /var/lib/dpkg/status
    0.9.7e-3sarge1 0
        500 http://ftp.de.debian.org stable/main Packages


HappyTux 09-30-2006 06:55 PM

Quote:

Originally Posted by punt
I'm not sure what you mean. As far as I can tell, I already have that:

Code:

# apt-cache policy libssl-dev   
libssl-dev:
  Installed: 0.9.7e-3sarge2
  Candidate: 0.9.7e-3sarge2
  Version Table:
 *** 0.9.7e-3sarge2 0
        500 http://security.debian.org stable/updates/main Packages
        100 /var/lib/dpkg/status
    0.9.7e-3sarge1 0
        500 http://ftp.de.debian.org stable/main Packages



Weird indeed you certainly do have them installed even stranger I just downloaded then tried the menuconfig here on my system and it works fine. Now I run a testing/unstable mixed system but I can't see that making much difference. One thing as it says in the README file is edit the config.h file then just use make to compile directly might be worth a try.

Code:

[08:47 PM Sat Sep 30: stephen @ ~/archives/tar/psybnc]
>$ make menuconfig
Initializing Menu-Configuration[*] Running Conversion Tool for older psyBNC Data.[*] Running Autoconfig.
System: Linux
Socket Libs: Internal.
Environment: Internal.
Time-Headers: in time.h and sys/time.h
Byte order: Big Endian.
IPv6-Support: Yes, general support. But no interface configured.
async-DNS-Support: Yes.
SSL-Support: Yes.
Creating Makefile
Random Seed created.[*] Creating Menu, please wait.
This needs the ncurses library. If it is not available, menuconf wont work. If you are using curses, use make menuconfig-curses instead.


Now compile psyBNC using make, if not yet compiled, or if Options were changed.
done.


punt 09-30-2006 08:20 PM

yeah, still says that SSL is not installed for me.... :(

punt 09-30-2006 08:47 PM

I've been trying to fix this for months now... is there *anything* else I can try? :(

HappyTux 09-30-2006 08:56 PM

Quote:

Originally Posted by punt
I've been trying to fix this for months now... is there *anything* else I can try? :(

You have tried the editing of the config.h then make? I so and it still gives you the errors then I don't think I have any more ideas other than looking at the website and see if they having a mailing list or something similar for support.

punt 09-30-2006 09:49 PM

HappyTux, I'm really not sure what to add in config.h... maybe that's where I'm stuck.

HappyTux 09-30-2006 10:12 PM

Quote:

Originally Posted by punt
HappyTux, I'm really not sure what to add in config.h... maybe that's where I'm stuck.

Well I looked into the file and there just seems to be a bunch of default values so I ran the make it compiles fairly quickly then at the end it starts to ask some questions, you may as well go ahead and run the make to see what it does the worst that can happen is it fails.

Code:

*** GENERATING SSL-KEYS FROM CERTIFICATE **
* You will be prompted for Cert-Contents  *
*  This Infos will be used only for SSL  *
* Alter the informations to your values  *
* for the sake of correct Cert-Checking  *
*******************************************
Generating certificate request ..
Generating a 2048 bit RSA private key
............................................+++
............................................................................................................+++
writing new private key to 'key/psybnc.key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name [DE]:

Edit: Here is the config.h that was here in case your file does not work.

Code:

/*
 * Configuration file for psyBNC, created by menuconf
 */

/* Encryption */

#define CRYPT

/* Encryption Type*/

#define BLOWFISH

/* Allow Translation */

#define TRANSLATE

/* Allow internal network */

#define INTNET

/* Allow traffic logging */

#define TRAFFICLOG

/* Allow linkage of bouncers */

#define LINKAGE

/* Allow the dcc File-Functions */

#define DCCFILES

/* Pipe dcc Chats */

#define DCCCHAT

/* Allow to add more users */

#define MULTIUSER

/* Number of max. Users */

#define MAXUSER 50

/* Number of max. Connections per User */

#define MAXCONN 99

/* Allow the usage of scripts */

#define SCRIPTING

/* Use blocking DNS */

#define BLOCKDNS

/* Allow multiple irc connections per user */

#define NETWORK

/* Allow Proxy Support */

#define PROXYS

/* The logging level */

#define LOGLEVEL 0

/* SSL-Security */

#define SSLSEC 2


punt 09-30-2006 10:14 PM

HappyTux, I've already done that -- menuconfig works too now. It works but SSL support doesn't work because it never found SSL to begin with. SSL support is critical.

So what do I do?

punt 09-30-2006 10:26 PM

This is a perfeclty fine working file too, and I can execute it as a normal user:

Code:

/* The Path to SSL */

#define SSLPATH "/usr/bin/openssl/"

/* SSL-Security */

#define SSLSEC 2

/usr/bin/openssl exists. make just isn't finding it :(

Edit: I changed it to /usr/bin:

Code:

SSL-Support: Yes, but no openssl binary found in "/usr/bin/".Creating Makefile

$ which openssl
/usr/bin/openssl

:(:(:(

HappyTux 09-30-2006 10:35 PM

Quote:

Originally Posted by punt
This is a perfeclty fine working file too, and I can execute it as a normal user:

Code:

/* The Path to SSL */

#define SSLPATH "/usr/bin/openssl/"

/* SSL-Security */

#define SSLSEC 2

/usr/bin/openssl exists. make just isn't finding it :(

That is the binary location not the -dev files so try /usr/include/openssl/ that is where the headers files needed for compiling should be.


All times are GMT -5. The time now is 08:41 PM.