How to step over the STDIN, while input redirection is not given at commandline
Hello Gurus, Source code: of printFile.pl # File: printFile.pl ## #! /usr/bin/perl -w my (@data, $user); # Input rediretion file $user = (defined @ARGV) ? shift @ARGV : Anonymous; # I don't wish to prompt by program, but it's still waiting how to Step Over here @data = STDIN if ( defined STDIN); die perl $0 data.txt if (@data); print User: $user \n; foreach (@data){ print $_; } 1; ### EOF # I have a perl scripts, which expects the input file as redirection at command line. i.e., [user3@Linux] # perl printFile.pl data.txt = This will display the inputed file content, if file name is piped as redirection. = Otherwise, program will wait to accept the file. = So, I don't want program prompt for the file name, = I would like to check the file name is given or not. = But, becuase of STDIN statement in program to dump the content of the file into Array, will cause to wait ifdata.txt is missing at command line. = It's very easy, if @ARGV checking, will have the command line parameters. But, it 's not in command line paramenters list. = It is input redirection. = How to check the input direction is given or not in perl, @ = STDIN; = like @ = STDIN if ( defined STDIN ); But this will not full fill the requirement, because, it's prompting for input, if redirection missing at commandline. Please, kindly give me suggestions to proceed. Thanks in advance. Regards, ~ SubbaReddy .M Sr. Programmer, Frontlinesoft, Hyderabad http://www.frontlinesoft.com Ph: 91-40-3392147, 3391683 (O) 91-40-3307980 ( R) w3page: http://www.geocities.com/msubbareddy/ ICQ: 56093095
how to access the perl file from palm top
Hello Gurus, I have apache with mod-perl env. on Redhat linux 6.2 and mysql as backend. Written perl script that fetch the data from mysql database and generate the dynamic page to view from PC based browser. #!/usr/bin/perl -w use CGI qw(:standard); use DBI; $driver = mysql; $database = MsgBoard; $user = root; $password = ; $host = 127.0.0.1; $port = ; $dsn = DBI:$driver:database=$database;host=$host;port=$port; $dbh = DBI-connect($dsn, $user, $password,{'RaiseError' = 1}); $drh = DBI-install_driver(mysql); my $cgiQuery = new CGI; print $cgiQuery-header,start_html(check user); $myTable = UNAME; $sth = $dbh-prepare(Select uname From $myTable WHERE uname = 'required user' ); if (!$sth) { $ERROR=Error: . $dbh-errstr.BR Network Failed by Your requestbr/body/html; } if (!$sth-execute) { $ERROR=Error: . $dbh-errstr; } $sth-bind_columns( undef,\$uid); $sth-fetch(); print b $uid user found /b; $cgiQuery-end_html; But, now I want to access the same file from Palm top and Cell phone. What is content-type and in what format the page need to generate to access from the Palm top? and from Cell phone? If Generate the XML data repository using perl script, to view from Palm top what are the parser need to use at Palm top and server. Kindly, please give me suggestion and if any examples. Thanks in advance. ~ SubbaReddy .M
Re: PerlEditor - Freeware or Trialware
I found and working comfortably with the one, having debug feature: http://open-perl-ide.sourceforge.net/ Best of luck ~ SubbaReddy .M - Original Message - From: Chris Jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 25, 2001 2:46 PM Subject: Re: PerlEditor - Freeware or Trialware Anand Ratnasabapathy wrote: Can any one help me with a Nice Editor for working on Perl-cgi, Emacs. http://www.gnu.org/software/emacs/emacs.html
Re: mod_perl.so not built after building mod_perl
You need select the option for dso on configuring. See the docs for your required installation, may help you. http://perl.apache.org/guide/install.html#Build_mod_perl_as_a_DSO_inside_t http://httpd.apache.org/docs/dso.html Currently, i am doing it for Linux 6.2 (Redhat). Best of luck. -SubbaReddy - Original Message - From: Manjrekar Pratiksha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 4:09 AM Subject: mod_perl.so not built after building mod_perl Hello, I have a Solaris machine System Configuration: OS: SUN Solaris I have installed Apache ver 1.3.9 I have also installed mod_perl -1.26. However when I make the mod_perl package I do not get the mod_perl.so file. Could anyone tell the reason for this? regards, Pratiksha ** The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. This email and any response may be monitored by Sony UK. If you have received this transmission in error, please contact our Helpdesk by email on [EMAIL PROTECTED] (04) **
how to install the XML::LibXSLT along with libxslt?
I am very sorry to apache mail list, becuase of posting the not related query. So, i am epxecting help from successfully work one. And Daniel is the author of this, so i am directly posting him. I apologise for inconvenience. I am trying to install XML::LibXML but for that, first I need to install the libxslt-1.0.6 For this I have installed libxml2-2.4.7-1.i386.rpm And how to set XPath, after installing this libxml2-2.4.7-i386.rpm ? I saw in README file in libxslt-1.0.6 bundle. i.e., XSLT support for libxml2 http://xmlsoft.org/ Requires libxml2 = 2.3.6 with XPath support. It won't even compileotherwise.Check the FEATURES file for informations about completenessCheck the Changelog too to keep track of progresses. report bugs to [EMAIL PROTECTED] or on the bugzilla.gnome.org base. Daniel Veillard [EMAIL PROTECTED] So, while installing libxslt-1.0.6 i am getting error atlast, that is " checking for libxml libraries = 2.4.7... ./configure: xml2-config: command not found " [root@qclinux libxslt-1.0.6]# ./configureloading cache ./config.cachechecking for a BSD compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking whether make sets ${MAKE}... yeschecking for working aclocal... foundchecking for working autoconf... foundchecking for working automake... foundchecking for working autoheader... foundchecking for working makeinfo... foundchecking whether to enable maintainer-specific portions of Makefiles... nochecking for gcc... gccchecking whether the C compiler (gcc ) works... yeschecking whether the C compiler (gcc ) is a cross-compiler... nochecking whether we are using GNU C... yeschecking whether gcc accepts -g... yeschecking for POSIXized ISC... nochecking for gcc... (cached) gccchecking whether the C compiler (gcc -g -O2 ) works... yeschecking whether the C compiler (gcc -g -O2 ) is a cross-compiler... nochecking whether we are using GNU C... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking how to run the C preprocessor... gcc -Echecking for ANSI C header files... yeschecking for Cygwin environment... nochecking for mingw32 environment... nochecking host system type... i686-pc-linux-gnuchecking build system type... i686-pc-linux-gnuchecking for ld used by GCC... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for /usr/bin/ld option to reload object files... -rchecking for BSD-compatible nm... /usr/bin/nm -Bchecking whether ln -s works... yeschecking how to recognise dependant libraries... pass_allchecking for object suffix... ochecking for executable suffix... nochecking command to parse /usr/bin/nm -B output... okchecking for dlfcn.h... yeschecking for ranlib... ranlibchecking for strip... stripchecking for objdir... .libschecking for gcc option to produce PIC... -fPICchecking if gcc PIC flag -fPIC works... yeschecking if gcc static flag -static works... yeschecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.lo... yeschecking if gcc supports -fno-rtti -fno-exceptions... yeschecking whether the linker (/usr/bin/ld) supports shared libraries... yeschecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking dynamic linker characteristics... GNU/Linux ld.sochecking if libtool supports shared libraries... yeschecking whether -lc should be explicitly linked in... nocreating libtoolchecking for sys/types.h... yeschecking for sys/time.h... yeschecking for stdlib.h... yeschecking for unistd.h... yeschecking for string.h... yeschecking for ieeefp.h... nochecking for nan.h... nochecking for math.h... yeschecking for fp_class.h... nochecking for float.h... yeschecking for ansidecl.h... yeschecking for time.h... yeschecking for sys/stat.h... yeschecking for stat... yeschecking for _stat... nochecking for isnan... yeschecking for isinf... yeschecking for pow... nochecking for pow in -lm... yeschecking for floor... nochecking for pow in -lm... (cached) yeschecking for fabs... nochecking for pow in -lm... (cached) yeschecking for gettimeofday... yeschecking for mktime... yeschecking for localtime... yeschecking for asctime... yeschecking for time... yeschecking for gmtime... yeschecking for perl... perlchecking for libxml libraries = 2.4.7... ./configure: xml2-config: command not found./configure: test: integer expression expected before -geconfigure: error: You need at least libxml2 2.4.7 for this version of libxslt Please, help me. -SubbaReddy
Re: Internal server error on Refreshing mod_perl page ( Apache::ASP )
Thanks alot Joshua, You ar right, by turning off the PerlTaintCheck , PerlTaintCheck Off in my httpd.conf. It's fixed. My dev versions of Apache::ASP ( 2.29 ) MLDBM::Sync ( .25 ) will be able to run under PerlTaintCheck On, let me know if you would like these pre release. And I would like to have the Apache::ASSP(2.29) MLDBM::Sync(.25). because I want to work with Apache::ASP, by having the PerlTaintCheck On. Please give me guidance. Once again thanks. -SubbaReddy - Original Message - From: Joshua Chamas [EMAIL PROTECTED] To: SubbaReddy M [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 10, 2001 2:24 PM Subject: Re: Internal server error on Refreshing mod_perl page ( Apache::ASP ) SubbaReddy M wrote: Hello Gurus, [Sat Nov 10 11:54:32 2001] [error] Insecure dependency in eval while running with -T switch at /usr/lib/perl5/site_perl/5.6.1/MLDBM/Serializer/Data/Dumper.pm line 51. MLDBM::Serializer::Data::Dumper::deserialize('MLDBM::Serializer::Data::Dumpe r=HASH(0x843bd20)', '$MlDbM{\'timeout\' = \'1005374203\'}') called at /usr/lib/perl5/site_perl/5.6.1/MLDBM.pm line 155 MLDBM::FETCH('MLDBM=HASH(0x843bd08)', '07abbd5f03d200c6bac27a861f47e35e') called at /usr/lib/perl5/site_perl/5.6.1/MLDBM/Sync.pm line 85 MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x843a838)', '07abbd5f03d200c6bac27a861f47e35e') called at This error comes from the mod_perl config: PerlTaintCheck On You can see more on this error at: http://www.apache-asp.org/faq.html#Insecure%20depec6cd400 I would not recommend trying to get Apache::ASP to run under PerlTaintCheck as its been a while since the author ( me ) has done so, so there will likely be other errors in doing so than what's listed in the above FAQ item. So find the config in your system *.conf files and turn it off for now. Future Apache::ASP support queries should be emailed to the email list specific to it. You can subscribe to it at [EMAIL PROTECTED] --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks Founder Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Internal server error on Refreshing mod_perl page ( Apache::ASP )
Hello Gurus, Here is my first step with mod_perl after so many strugles. Please help me: 1.asp !-- sample here --htmlbodyFor loop incrementing font size: p% for(1..5) { %!-- iterated html text --font size="%=$_%" Size = %=$_% /font br% } %/body/html!-- end sample here -- 1.asp /home/httpd/asp/1.aspis called from brower http://192.168.1.235/asp/1.asp Fine it's generating nice out put, but when I clicked the refresh button on browser Internal server error page coming. So, I checked server error_log page, here is out put [root@qclinux /root]# tail /var/log/httpd/error_log[Sat Nov 10 11:53:06 2001] [notice] Apache/1.3.22 (Unix) mod_perl/1.26 configured -- resuming normal operations[Sat Nov 10 11:53:06 2001] [notice] Accept mutex: sysvsem (Default: sysvsem)[root@qclinux /root]# tail /var/log/httpd/error_log[Sat Nov 10 11:54:32 2001] [error] Insecure dependency in eval while running with -T switch at /usr/lib/perl5/site_perl/5.6.1/MLDBM/Serializer/Data/Dumper.pm line 51. MLDBM::Serializer::Data::Dumper::deserialize('MLDBM::Serializer::Data::Dumper=HASH(0x843bd20)', '$MlDbM{\'timeout\' = \'1005374203\'}') called at /usr/lib/perl5/site_perl/5.6.1/MLDBM.pm line 155 MLDBM::FETCH('MLDBM=HASH(0x843bd08)', '07abbd5f03d200c6bac27a861f47e35e') called at /usr/lib/perl5/site_perl/5.6.1/MLDBM/Sync.pm line 85 MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x843a838)', '07abbd5f03d200c6bac27a861f47e35e') called at /usr/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 5114 Apache::ASP::State::FETCH('Apache::ASP::State=HASH(0x842a824)', '07abbd5f03d200c6bac27a861f47e35e') called at /usr/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 4539 Apache::ASP::Session::new('Apache::ASP=HASH(0x836c134)') called at /usr/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 605 Apache::ASP::new('Apache::ASP', 'Apache=SCALAR(0x836f8cc)') called at /usr/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 147 Apache::ASP::handler('Apache=SCALAR(0x836f8cc)') called at /dev/null line 0 eval {...} called at /dev/null line 0 Thanks in advance. -SubbaReddy
Re: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS
Sorry, my intention is to express the problem area. so that, expect the exact solution. Please, if you have solution, kindly respond or put on known one. I am eagrly, waiting for solution. Thank you, -SubbaReddy - Original Message - From: Mohit Agarwal [EMAIL PROTECTED] To: SubbaReddy M [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 12:21 AM Subject: Re: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS On Fri, 9 Nov 2001, SubbaReddy M wrote: Hello Gurus, please help me to get update for mod_perl. [...] PLEASE -don't- post any HTML mails on the list. We are humans here, not browsers. ---BeginMessage--- Hello Gurus, please help me to get update for mod_perl. I have good run apache 1.3, which has got by default on Installing the Linux 6.2 (Redhat) Now I install perl 5.6.1 and To extend an already installed Apache with mod_perl I followed the steps in http://perl.apache.org/guide/install.html#Build_mod_perl_as_a_DSO_outside_ But, unable to access the apache httpd from browser ( http://192.168.1.235/ ). i.e., Build mod_perl as a DSO outside the Apache Source Tree via APXS This will build the DSO libperl.so outside the Apache source tree with the new Apache 1.3 support tool apxs and install it into the existing Apache hierarchy. When I checked log file of the httpd, seems something ERROR [root@qclinux /root]# tail /etc/log/httpd/error_log Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.26 configured -- resuming normal operations configured -- resuming normal operations Size magic not implemented. When I tried from browser not any page and checked log file [root@qclinux /root]# tail /var/log/httpd/error_log [Fri Nov 9 07:16:44 2001] [notice] child pid 856 exit signal Segmentation fault (11) [Fri Nov 9 07:16:44 2001] [notice] child pid 855 exit signal Segmentation fault (11) [Fri Nov 9 07:16:45 2001] [notice] child pid 860 exit signal Segmentation fault (11) [Fri Nov 9 07:16:45 2001] [notice] child pid 859 exit signal Segmentation fault (11) Please, kindly give me suggestion to get on work mod_perl with existing Apache. because, it has some many loaded module. I am facing so many problem to get work with new apache + mod_perl. So I want to continue with existing Apache and new mod_perl environment. Thanks in advance. -SubbaReddy M ---End Message---
Re: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS
Oh, thank you very much hamptone, I am really waitinting for replies. This is type encouragement is require for new bies. thank you and let you know the progress. -SubbaReddy But, - Original Message - From: hamptone [EMAIL PROTECTED] To: SubbaReddy M [EMAIL PROTECTED] Sent: Friday, November 09, 2001 3:03 AM Subject: Re: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS Try my tips for doing this at: www.hamptonandassociates.net/apache_tips.htm Good luck. - Original Message - From: SubbaReddy M [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 4:02 PM Subject: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS Hello Gurus, please help me to get update for mod_perl. I have good run apache 1.3, which has got by default on Installing the Linux 6.2 (Redhat) Now I install perl 5.6.1 and To extend an already installed Apache with mod_perl I followed the steps in http://perl.apache.org/guide/install.html#Build_mod_perl_as_a_DSO_outside_ But, unable to access the apache httpd from browser ( http://192.168.1.235/ ). i.e., Build mod_perl as a DSO outside the Apache Source Tree via APXS This will build the DSO libperl.so outside the Apache source tree with the new Apache 1.3 support tool apxs and install it into the existing Apache hierarchy. When I checked log file of the httpd, seems something ERROR [root@qclinux /root]# tail /etc/log/httpd/error_log Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.26 configured -- resuming normal operations configured -- resuming normal operations Size magic not implemented. When I tried from browser not any page and checked log file [root@qclinux /root]# tail /var/log/httpd/error_log [Fri Nov 9 07:16:44 2001] [notice] child pid 856 exit signal Segmentation fault (11) [Fri Nov 9 07:16:44 2001] [notice] child pid 855 exit signal Segmentation fault (11) [Fri Nov 9 07:16:45 2001] [notice] child pid 860 exit signal Segmentation fault (11) [Fri Nov 9 07:16:45 2001] [notice] child pid 859 exit signal Segmentation fault (11) Please, kindly give me suggestion to get on work mod_perl with existing Apache. because, it has some many loaded module. I am facing so many problem to get work with new apache + mod_perl. So I want to continue with existing Apache and new mod_perl environment. Thanks in advance. -SubbaReddy M
Re: [JOB] OpenInteract developer wanted
You can check on this link for required info: http://perl.apache.org/guide/ best of luck. -SubbaReddy - Original Message - From: Chris Winters [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 10:35 AM Subject: [JOB] OpenInteract developer wanted A company I've been working with asked me to post this job. You'd be working with a substantial (and growing!) OpenInteract system that I designed and built, which could be a plus or a minus depending on how you look at it :-) Feel free to ask me for details. Chris URL with full description: http://jobs.perl.org/job/97 Location: (USA) Pittsburgh, Pennsylvania Hours: Full-time, onsite Description: This position will join a team responsible for the development and maintenance of an interactive data management system for internal use. Position requires significant experience with intranet development using OpenInteract, HTML, Perl, SQL, and Apache/mod_perl. DB2 on AS/400 is also desired. Experience in a Win32 environment needed with possible Linux migration. Knowledge/Experience: BA/BS with minimum 4 years progressively responsible experience within administrative computing environment; demonstrated experience on a technical team; excellent analytical skills; detailed knowledge of database design and relational technology with demonstrable mastery Experience with OpenInteract, Template Toolkit, SQL, Perl and programmatically generated HTML very highly desired. Also: Apache/mod_perl administration, knowledge of MySQL and IBM DB2 on AS/400, C/C++, thin client or web driven applications development experience. Contact information: To apply or for information, send resume, salary requirements, references and a sample of your work (a small web-dbi script or something) to [EMAIL PROTECTED] No 3rd Parties please. Only US Citizens or authorized to Work for any employer in the US. P.S. Recruiters are 3rd parties, see above.
Here is my backtrace, please solove my problem
command: install. Try help. (gdb) help List of classes of commands: aliases -- Aliases of other commands breakpoints -- Making program stop at certain points data -- Examining data files -- Specifying and examining files internals -- Maintenance commands obscure -- Obscure features running -- Running the program stack -- Examining the stack status -- Status inquiries support -- Support facilities tracepoints -- Tracing of program execution without stopping the program user-defined -- User-defined commands Type help followed by a class name for a list of commands in that class. Type help followed by command name for full documentation. Command name abbreviations are allowed if unambiguous. (gdb) status Undefined command: status. Try help. (gdb) q The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /usr/sbin/httpd, Pid 14947 - Original Message - From: Stas Bekman [EMAIL PROTECTED] To: SubbaReddy M [EMAIL PROTECTED]; modperl list [EMAIL PROTECTED] Sent: Friday, November 09, 2001 2:02 AM Subject: Re: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS SubbaReddy M wrote: How can I get backtrace info to send you? If you want to solve your problem at least read the replies thoroughly and you will be all set. Here it is again. And DO NOT reply to me, but to the list. Since you have a segfault, we cannot help you until you send us the backtrace. See the SUPPORT file in your source distro which explains how to do that. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
with backtrace Fw: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS
[root@qclinux mod_perl-1.26]# perl Makefile.PL PERL_DEBUG=1 EVERYTHING=1 DEBUG mode... ...adding `-g' to EXTRA_CFLAGS ...turning on PERL_TRACE ...setting PERL_DESTRUCT_LEVEL=2 Configure mod_perl with ../apache_1.3.22/src ? [y] Shall I build httpd in ../apache_1.3.22/src for you? [y] Appending mod_perl to src/Configuration Using config file: /soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/src/Configuration Creating Makefile + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.26 + id: Perl/v5.6.1 (linux) [perl] + adjusting Apache build environment + enabling Perl support for SSI (mod_include) + using system Expat + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in regex Creating Makefile in os/unix Creating Makefile in ap Creating Makefile in main Creating Makefile in modules/standard Creating Makefile in modules/perl EXTRA_CFLAGS: -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/u sr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -D NO_DL_NEEDED PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled Will run tests as User: 'nobody' Group: 'root' Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::PerlRunXS Writing Makefile for Apache::Server Writing Makefile for Apache::Symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl Thanks inadvance -SubbaReddy - Original Message - From: Stas Bekman [EMAIL PROTECTED] To: SubbaReddy M [EMAIL PROTECTED]; modperl list [EMAIL PROTECTED] Sent: Friday, November 09, 2001 2:02 AM Subject: Re: Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS SubbaReddy M wrote: How can I get backtrace info to send you? If you want to solve your problem at least read the replies thoroughly and you will be all set. Here it is again. And DO NOT reply to me, but to the list. Since you have a segfault, we cannot help you until you send us the backtrace. See the SUPPORT file in your source distro which explains how to do that. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Here is my backtrace, please solove my problem
This is, i am geting. [root@qclinux mod_perl-1.26]# gdb httpd core GNU gdb 19991004 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-redhat-linux...(no debugging symbols found)... /soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/core: No such file or directory. (gdb) bt No stack. (gdb) /bt Undefined command: . Try help. (gdb) continue The program is not being run. (gdb) run -X -f `pwd`/t/conf/httpd.conf -d `pwd`/t Starting program: /usr/sbin/httpd -X -f `pwd`/t/conf/httpd.conf -d `pwd`/t Ouch! ap_mm_create(1048576, /soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/t/tmp/mm.19659) failed Error: MM: mm:core: failed to open semaphore file (No such file or directory): OS: No such file or directory Program exited with code 01. (gdb) Quit (gdb) bt No stack. (gdb) and i am really thankfull for your help. -SubbaReddy - Original Message - From: Barrie Slaymaker [EMAIL PROTECTED] To: SubbaReddy M [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 10:09 PM Subject: Re: Here is my backtrace, please solove my problem [Note the Reply-To] You're getting closer. Unfortunately, the backtrace you sent says that gdb attached to a running httpd and it happened to be sitting in select() when gdb attached on to it. At which point you grabbed the backtrace and exited, killing the httpd before recreating the problem. Instead, you need to cause the problem while debugging the httpd and, assuming it segfaults when in gdb, get the backtrace from where the problem occurred. Try the first recipe from SUPPORT: % cd mod_perl-x.xx % touch t/conf/srm.conf % gdb ../apache_x.xx/src/httpd (gdb) run -X -f `pwd`/t/conf/httpd.conf -d `pwd`/t [now make request that causes core dump] (gdb) bt or do what you did but gdb's 'continue' command to get the httpd to run again and make the offending request over and over until you get it to seg fault, *then* do the 'where'/'bt' command. The stack trace needs to be from the point of failure, not from some place in a (so far) healthy server... If you have a core file from the segfault, you can also do that recipe from SUPPORT: % gdb httpd core and do the 'bt' that's often a bit easier. - Barrie
Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS
Hello Gurus, please help me to get update for mod_perl. I have good run apache 1.3, which has got by default on Installing the Linux 6.2 (Redhat) Now I install perl 5.6.1 and To extend an already installed Apache with mod_perl I followed the steps in http://perl.apache.org/guide/install.html#Build_mod_perl_as_a_DSO_outside_ But, unable to access the apache httpd from browser ( http://192.168.1.235/ ). i.e., Build mod_perl as a DSO outside the Apache Source Tree via APXS This will build the DSO libperl.so outside the Apache source tree with the new Apache 1.3 support tool apxs and install it into the existing Apache hierarchy. When I checked log file of the httpd, seems something ERROR [root@qclinux /root]# tail /etc/log/httpd/error_log Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.26 configured -- resuming normal operationsconfigured -- resuming normal operationsSize magic not implemented. When I tried from browser not any page and checked log file [root@qclinux /root]# tail /var/log/httpd/error_log[Fri Nov 9 07:16:44 2001] [notice] child pid 856 exit signal Segmentation fault (11)[Fri Nov 9 07:16:44 2001] [notice] child pid 855 exit signal Segmentation fault (11)[Fri Nov 9 07:16:45 2001] [notice] child pid 860 exit signal Segmentation fault (11)[Fri Nov 9 07:16:45 2001] [notice] child pid 859 exit signal Segmentation fault (11) Please, kindly give me suggestion to get on work mod_perl with existing Apache. because, it has some many loaded module. I am facing so many problem to get work with new apache + mod_perl. So I want to continue with existing Apache and new mod_perl environment. Thanks in advance. -SubbaReddy M
Proble by Build mod_perl as a DSO outside the Apache Source Tree via APXS
Hello Gurus, please help me to get update for mod_perl. I have good run apache 1.3, which has got by default on Installing the Linux 6.2 (Redhat) Now I install perl 5.6.1 and To extend an already installed Apache with mod_perl I followed the steps in http://perl.apache.org/guide/install.html#Build_mod_perl_as_a_DSO_outside_ But, unable to access the apache httpd from browser ( http://192.168.1.235/ ). i.e., Build mod_perl as a DSO outside the Apache Source Tree via APXS This will build the DSO libperl.so outside the Apache source tree with the new Apache 1.3 support tool apxs and install it into the existing Apache hierarchy. When I checked log file of the httpd, seems something ERROR [root@qclinux /root]# tail /etc/log/httpd/error_log Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.26 configured -- resuming normal operations configured -- resuming normal operations Size magic not implemented. When I tried from browser not any page and checked log file [root@qclinux /root]# tail /var/log/httpd/error_log [Fri Nov 9 07:16:44 2001] [notice] child pid 856 exit signal Segmentation fault (11) [Fri Nov 9 07:16:44 2001] [notice] child pid 855 exit signal Segmentation fault (11) [Fri Nov 9 07:16:45 2001] [notice] child pid 860 exit signal Segmentation fault (11) [Fri Nov 9 07:16:45 2001] [notice] child pid 859 exit signal Segmentation fault (11) Please, kindly give me suggestion to get on work mod_perl with existing Apache. because, it has some many loaded module. I am facing so many problem to get work with new apache + mod_perl. So I want to continue with existing Apache and new mod_perl environment. Thanks in advance. -SubbaReddy M
How to update the httpd env for mod_perl
Hello Gurus, Iinstalled perl 5.6.1 and mod_perl and Apache-ASP-2.27 on my Linux box. (Redhat 6.2) and checked at commond line for version check, getting following info. [root@qclinux /root]# perl -v This is perl, v5.6.1 built for i686-linux Copyright 1987-2001, Larry Wall . And tried to for perldoc to see Apache::ASP, getting document, [root@qclinux /root]# perldoc Apache::ASP.1::Apache::ASPUser Contributed Perl Documentat.1::Apache::ASP(3) NAME Apache::ASP - Active Server Pages for Apache with mod_perl SYNOPSIS SetHandler perl-script PerlModule Apache::ASP PerlHandler Apache::ASP PerlSetVar Global /tmp/asp... And done the required modification in httpd.conf and when restart the Apache, using httpd -f /etc/httpd/conf/httpd.conf it is displaying following info [root@qclinux perl-5.6.1]# httpd Syntax error on line 872 of /etc/httpd/conf/httpd.conf:Can't locate Apache/ASP.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 /etc/httpd/ /etc/httpd/lib/perl) at (eval 4) line 3. Modifications in httpd.conf # Extra ModulesLoadModule perl_module modules/libperl.so # this line is already exist LoadModule perl_module modules/mod_perl.so PerlModule Apache::ASPPerlModule Apache::DBI Alias /perl/ /home/httpd/perl/ Location /perl SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On /Location Files ~ (\.asp) SetHandler perl-script PerlModule Apache::ASP PerlHandler Apache::ASP PerlSetVar Global . PerlSetVar StateDir /tmp/asp/Files So, I commented ( # ) out the Red lines in httpd.conf and successfully restarted the Apache. # LoadModule perl_module modules/mod_perl.so.. # PerlModule Apache::ASP# PerlModule Apache::DBI ... Files ~ (\.asp) SetHandler perl-script# PerlModule Apache::ASP Now able check execute the mod_perl scripts from browser, and it 's displaying "Yeah... mod_perl/1.21" on browser. chk.cgi #! /usr/bin/perl -W print "Content-type:text/html \n\n"; if(exists $ENV{MOD_PERL}) { #we're running under mod_perl print "yeah... " . $ENV{MOD_PERL}; } else { #we're NOT running under mod_perl print "No... " . $ENV{MOD_PERL}; } But, when try to check from browser:, it still displaying old version only and old environment. That's i am unable to access the newly installed perl 5.6.1, mod_perl and it's Apache::ASP, Apache::SSI, Apache::DBI moudles. How to udate the httpd include enviroment, which will be loaded by httpd service? http://192.168.1.235/perl-status Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.21 process 1887, running since Wed Nov 7 08:50:51 2001 Loaded Moudles . http://192.168.1.235/perl-status?inc @INC = /usr/lib/perl5/5.00503/i386-linux/usr/lib/perl5/5.00503/usr/lib/perl5/site_perl/5.005/i386-linux/usr/lib/perl5/site_perl/5.005/etc/httpd//etc/httpd/lib/perl [root@qclinux /root]# tail /var/log/httpd/error_log[Wed Nov 7 07:41:03 2001] [notice] caught SIGTERM, shutting down[Wed Nov 7 07:42:29 2001] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.21 configured -- resuming normal operations[Wed Nov 7 07:48:51 2001] [error] Can't locate Apache/ASP.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 /etc/httpd/ /etc/httpd/lib/perl) at (eval 5) line 3. [Wed Nov 7 07:48:51 2001] [error] Undefined subroutine Apache::ASP::handler called. Please help me to up the Apache with Apache::ASP with mod_perl. Thanks in advance. -SubbaReddy M
FCGI = CGI::FastCGI
What is difference between FCGI and CGI::FastCGI?I installed FCGI,but tried for CGI::FastCGI module, not able to find.Where do I get CGI::FastCGI?thanks inadvance.-SubbaReddy