[Tutor] sockets broken on New Install???
Thu, 16 Aug 2001 10:48:02 -0700
On Thu, 16 Aug 2001 11:00:19 -0600 (MDT), Bruce Sass
<email@example.com> wrote about Re: [Tutor] sockets broken
on New Install???:
:Have a look in <source tree>/Modules/Setup, search for "_socket" (and
:"EXPAT_DIR" to get the expat, minidom and sax stuff working)... you
:probably just need to edit a little and re-make.
Right. I'm with you on the editing and re-make.
:"locate" and "grep" are a couple of standard commands that will help
:with finding where the headers and libs for stuff lives ("find" is a
:good one to know about also).
Thanks. I know I need to learn more *nix. (I've been getting by with
whereis a lot...bash shell.)
:~$ locate openssl | grep include | less
:gives me a clue on how to edit the socket section in Setup.
Well, I get something like this:
[thinker@FQ-Nine:~ ]$ locate openssl | grep include | more
I wish I could say that gave ME a clue.
I look in <dir>/Modules.Setup for _socket and find this:
# for socket(2), without SSL support.
# Socket module compiled with SSL support; you must comment out the
# socket line above, and possibly edit the SSL variable:
#_socket socketmodule.c \
# -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
# -L$(SSL)/lib -lssl -lcrypto
And it looks to me like
SSL = /usr/local/ssl
is correct??? (Is that the part I would edit?)
Do I need to change it to
Plus, what's with all the # at the beginning of the lines. Looks like
everything is commented out. Is this the normal way for it to look?
(Confusing to me.)
I think I figured out the expat part.
In the <dir>/Modules/Setup file I changed the line
after getting these results from a commandline prompt:
[thinker@FQ-Nine:~ ]$ locate expat | more
So, I think that I've got expat set to go, but I'm not sure about
SSL/Socket, since my results from
$locate openssl | grep include | more
seem to indicate to me, that the Modules/Setup file has that directory