Websh error: "no interp !" on Windows

View: New views
4 Messages — Rating Filter:   Alert me  

Websh error: "no interp !" on Windows

by ecky-l :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

I had a look at Websh (latest release) today and compiled it on Windows XP, Apache 2.2 (latest release) with MSVC 8 express.

During installation, configuration and startup of Apache including the Websh module, everything is fine... no errors in the log - also no statement whether it worked. But when I try to load a page, an internal server error comes up and the error.log states:

[Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] mod_websh - no interp !\n
[Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] couldn't run websh script: C:/Programme/Apache2.2/htdocs/index.html

What's up there? Is the module not correctly initialized or is there something missing - maybe an environment variable? The websh/bin directory is in the path, as well as Tcl/bin directory. I even set TCL_LIBRARY...


Thanks
Eckhard
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@...
For additional commands, e-mail: websh-dev-help@...


Re: Websh error: "no interp !" on Windows

by Ronnie Brunner :: Rate this Message:

| View Threaded | Show Only this Message

Hi

> I had a look at Websh (latest release) today and compiled it on
> Windows XP, Apache 2.2 (latest release) with MSVC 8 express.
>
> During installation, configuration and startup of Apache including
> the Websh module, everything is fine... no errors in the log - also
> no statement whether it worked. But when I try to load a page, an
> internal server error comes up and the error.log states:
>
> [Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] mod_websh - no interp !\n
> [Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] couldn't run websh script: C:/Programme/Apache2.2/htdocs/index.html
>
> What's up there? Is the module not correctly initialized or is there
> something missing - maybe an environment variable? The websh/bin
> directory is in the path, as well as Tcl/bin directory. I even set
> TCL_LIBRARY...

Mhh. Seems not to be the environment, as Apache usually does not start
if it doesn't find Tcl (shuts down with something like "httpd.exe:
Syntax error on line 119 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_websh.so into server: The specified module could not be found."

This can happen if you have a corrupt websh.conf though: if your
interpreter map throws an error, you get exactly the error you describe.
The interperter map is a proc that returns the interpreter class for a
request and is configured as follows by default:

# Setup interpreter classes for mod_websh
proc web::interpmap {file} {
    return $file
}

If that doesn't help and you're interested, I can send you a more
verbose interpool.c to help track down the problem.

BTW: by "the latest version" you mean the latest release 3.6.0b4 or
the latest source from svn? Please try the latest from svn: it's very
likely better than the release.

hth
Ronnie
--
Ronnie Brunner | ronnie.brunner@...
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@...
For additional commands, e-mail: websh-dev-help@...


Parent Message unknown Re: Websh error: "no interp !" on Windows

by ecky-l :: Rate this Message:

| View Threaded | Show Only this Message

Hi Ronny,

The trouble maker is Release 3.6.0.b4. The SVN version seems to work... thanks!

>
> If that doesn't help and you're interested, I can send you a more
> verbose interpool.c to help track down the problem.

This would still be nice to have.
BTW, do you or anybody else know how to debug Apache on Windows, without compiling the whole source code of Apache? Especially for debugging Websh or other modules, this would be interesting.


Eckhard

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@...
For additional commands, e-mail: websh-dev-help@...


Re: Websh error: "no interp !" on Windows

by Ronnie Brunner :: Rate this Message:

| View Threaded | Show Only this Message

> > If that doesn't help and you're interested, I can send you a more
> > verbose interpool.c to help track down the problem.
>
> This would still be nice to have.

FWIW: I just committed a version that logs better what's wrong if no
interpreter can be retrieved (either error in web::interpmap, or file
not found etc.)

> BTW, do you or anybody else know how to debug Apache on Windows,
> without compiling the whole source code of Apache? Especially for
> debugging Websh or other modules, this would be interesting.

Nope. I do almost all my testing/debugging on Solaris and Linux,
on Windws I click through some samples and run the Websh test suite
only.

Ronnie
--
Ronnie Brunner | ronnie.brunner@...
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@...
For additional commands, e-mail: websh-dev-help@...