Welcome, Guest. Please Login.
OpenDX User Forum
06/19/13 at 02:50:38
News: Quality paid support available from Visualization and Imagery Solutions


Pages: 1
CGI about OpenDX (Read 955 times)
buddy
Forum Newbie
*


Got Viz?

Posts: 11
CGI about OpenDX
08/04/11 at 19:03:50
 
hi joelr,
   I wrote a CGI program,using C.  CGI program function is to accept input parameters from user ,then execute .net file.  There is a problem when I test the CGI program.  The program can execute without problem in terminal. But it has a problem, called by the browser.  The error ,from the error.log is that "DXLStartDX: No such file or directory".
    joelr, how do you think this problem? Thank you!
    PS: I use apache as my server software.
Back to top
 
 
Email   IP Logged
joelr
OpenDX Forum Administrator
*****


Got Viz?

Posts: 388
Re: CGI about OpenDX
Reply #1 - 08/10/11 at 04:09:48
 

Your CGIs are running in a different environment than the command line.
If it cannot find the .net file, perhaps you just need to make the path absolute.
 
--Joel
Back to top
 
 
Email   IP Logged
buddy
Forum Newbie
*


Got Viz?

Posts: 11
Re: CGI about OpenDX
Reply #2 - 08/10/11 at 19:43:18
 
Hi Joel :  
 the code that I test the CGI is :
   IGRFSconn = DXLStartDX("dx ",NULL)
   if (IGRFSconn == NULL)
    {
           fprintf(stderr,"Could not connect\n");
           perror("DXLStartDX");
           exit(1);
    }

 
 
    and the error is  the same as before,"DXLStartDX: No such file or directory".
Back to top
 
 
Email   IP Logged
joelr
OpenDX Forum Administrator
*****


Got Viz?

Posts: 388
Re: CGI about OpenDX
Reply #3 - 08/11/11 at 03:42:21
 

Try checking that values of various environment variables, especially
PATH and DXROOT.
Back to top
 
 
Email   IP Logged
Pages: 1