DBD/DBI perl modules for HTTP Web Server
Hi,
I installed the http webserver from the 9i database CDs. But it seems to come without the DBi and DBD:Oracle modules. Where do I get them for the windows plattform ? binaries preferred.
Regards
Knut
First, check if the version of perl installed is ActiveState's. I doubt it is...at least it's not on my 9.2 version.
DBI does not seem to be installed, you're right.
You have two options:
1) The best way is to ensure you have the same compiler they do (probably MSVC 6.0 SP3), but it's hard to tell and build DBI and DBD::XXXX yourself.
2) Install ActivePerl and their modules, then force Apache to use that...
Regards,
Jeff
Similar Messages
-
Resources for implementing HTTP web server using java
hi ,
Thanks for giving your precious time in reading the message.I want to build a HTTP web server using java,which will run on my machine and I can communicate with it through web browser(IE) using HTTP requests and response.
I know java language, but quite new to network programming.I want to gain enough knowledge on network programming in java.Can you please suggest me good books or any other resources available on the internet for the required subject.Any help will be greatly appreciated.
my email-id is : [email protected]hi there my friend,
I am writing my own web server too. in w3c there is a sample web server called jigsaw-open source :) and simple-
I do think it worth trying.
you can contact me if you want to share some source and info. cause I will.
[email protected]
but within 2 weeks I will be back for studying for my web server. you have to wait for a while. -
Cannot install DBD::Oracle perl module with Oracle 11.2.0.3 client
Hi
I have been trying to install DBD::Oracle perl module on a Centos 5.7 server which is running Oracle client version 11.2.0.3. I have installed all dependencies prior to attempting installing the same and I am running into the following error -
/usr/bin/ld: skipping incompatible /app/utiba/oracle/client/lib//libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1Here are the complete details of my attempt of installation of the perl module -
[root@tch1testuview1 DBD-Oracle-1.50]# perl Makefile.PL
Using DBI 1.52 (for perl 5.008008 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI/
Configuring DBD::Oracle for perl 5.008008 on linux (x86_64-linux-thread-multi)
Remember to actually *READ* the README file! Especially if you have any problems.
Installing on a linux, Ver#2.6
Using Oracle in /app/utiba/oracle/client
DEFINE _SQLPLUS_RELEASE = "1102000300" (CHAR)
Oracle version 11.2.0.3 (11.2)
Found /app/utiba/oracle/client/rdbms/lib/ins_rdbms.mk
Using /app/utiba/oracle/client/rdbms/lib/ins_rdbms.mk
Your LD_LIBRARY_PATH env var is set to '/app/utiba/oracle/client/lib:/lib:/usr/lib'
Reading /app/utiba/oracle/client/rdbms/lib/ins_rdbms.mk
Reading /app/utiba/oracle/client/rdbms/lib/env_rdbms.mk
WARNING: Oracle /app/utiba/oracle/client/rdbms/lib/ins_rdbms.mk doesn't define a 'build' rule.
WARNING: I will now try to guess how to build and link DBD::Oracle for you.
This kind of guess work is very error prone and Oracle-version sensitive.
It is possible that it won't be supported in future versions of DBD::Oracle.
*PLEASE* notify dbi-users about exactly _why_ you had to build it this way.
Found header files in /app/utiba/oracle/client/rdbms/public.
client_version=11.2
DEFINE= -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"11.2.0.3\" -DORA_OCI_102 -DORA_OCI_112
Checking for functioning wait.ph
System: perl5.008008 linux builder10.centos.org 2.6.18-53.el5 #1 smp mon nov 12 02:14:55 est 2007 x86_64 x86_64 x86_64 gnulinux
Compiler: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl -lirc -lipgo
Oracle makefiles would have used these definitions but we override them:
CC: $(GCC)
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -O2 $(CDEBUG) $(CCFLAGS) -I/app/utiba/oracle/client/rdbms/demo -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/plsql/public -I/app/utiba/oracle/client/network/public -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -DLDAP_CM $(LPFLAGS) $(PLSQLNCGFLAGS) $(USRFLAGS)]
LDFLAGS: -o $@ $(LDOBJSZ) $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME) $(LDPATHFLAG)$(LIBHOME)stubs/ $(LDPATHFLAG)$(LIBHOME) $(LLIBIRC)
[-o $@ -m32 -L/app/utiba/oracle/client/rdbms/lib/ -L$(LIBHOME) -L$(LIBHOME)stubs/ -L$(LIBHOME) -lirc -lipgo ]
Linking with -lclntsh -ldl -lm -lpthread -lnsl -lirc -lipgo -ldl -lm [from $(OCISHAREDLIBS)]
LD_RUN_PATH=/app/utiba/oracle/client/lib
Using DBD::Oracle 1.50.
Using DBD::Oracle 1.50.
Using DBI 1.52 (for perl 5.008008 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)
[root@tch1testuview1 DBD-Oracle-1.50]# make
Skip blib/lib/DBD/Oracle/Troubleshooting/Cygwin.pod (unchanged)
Skip blib/lib/DBD/Oracle.pm (unchanged)
Skip blib/lib/oraperl.ph (unchanged)
Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Vms.pod (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Linux.pod (unchanged)
Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting.pod (unchanged)
Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Hpux.pm (unchanged)
Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)
Skip blib/lib/Oraperl.pm (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Sun.pod (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Macos.pod (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Aix.pod (unchanged)
Skip blib/lib/DBD/Oracle/Object.pm (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Win64.pod (unchanged)
Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)
Skip blib/lib/DBD/Oracle/Troubleshooting/Win32.pod (unchanged)
gcc -c -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/rdbms/demo -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/plsql/public -I/app/utiba/oracle/client/network/public -I/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.50\" -DXS_VERSION=\"1.50\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"11.2.0.3\" -DORA_OCI_102 -DORA_OCI_112 Oracle.c
gcc -c -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/rdbms/demo -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/plsql/public -I/app/utiba/oracle/client/network/public -I/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.50\" -DXS_VERSION=\"1.50\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"11.2.0.3\" -DORA_OCI_102 -DORA_OCI_112 dbdimp.c
dbdimp.c: In function ‘fb_ary_cb_alloc’:
dbdimp.c:324: warning: comparison is always false due to limited range of data type
dbdimp.c:325: warning: comparison is always false due to limited range of data type
dbdimp.c:326: warning: comparison is always false due to limited range of data type
dbdimp.c:327: warning: comparison is always false due to limited range of data type
dbdimp.c:328: warning: comparison is always false due to limited range of data type
dbdimp.c: In function ‘fb_ary_alloc’:
dbdimp.c:344: warning: comparison is always false due to limited range of data type
dbdimp.c:345: warning: comparison is always false due to limited range of data type
dbdimp.c:346: warning: comparison is always false due to limited range of data type
dbdimp.c:347: warning: comparison is always false due to limited range of data type
gcc -c -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/rdbms/demo -I/app/utiba/oracle/client/rdbms/public -I/app/utiba/oracle/client/plsql/public -I/app/utiba/oracle/client/network/public -I/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.50\" -DXS_VERSION=\"1.50\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"11.2.0.3\" -DORA_OCI_102 -DORA_OCI_112 oci8.c
oci8.c: In function ‘ora_blob_read_mb_piece’:
oci8.c:1804: warning: comparison is always false due to limited range of data type
oci8.c: In function ‘describe_obj_by_tdo’:
oci8.c:3256: warning: comparison is always false due to limited range of data type
oci8.c: In function ‘ora_describe’:
oci8.c:3480: warning: comparison is always false due to limited range of data type
oci8.c: In function ‘ora_st_fetch’:
oci8.c:3953: warning: unused variable ‘imp_xxh’
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/app/utiba/oracle/client/lib" gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/app/utiba/oracle/client/lib/ -lclntsh -ldl -lm -lpthread -lnsl -lirc -lipgo -ldl -lm \
/usr/bin/ld: skipping incompatible /app/utiba/oracle/client/lib//libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1I am sure that installing a previous(older) version of oracle client will fix this issue i.e. either 11.2.0.1 or older (that is tested) but I want to know if it is possible to resolve the above issue with a work around and not having to install a previous version.
Fyi.. I've tried to install DBD::Oracle version 1.24 and 1.50 but that doesn't seem to make any difference. I couldn't find any related thread either for this error so I desperately need a solution to the same(if any).
If anyone can help here, would really appreciate it or else, I will have no choice but to install previous version of oracle client.
Thanks
Edited by: 956308 on Aug 31, 2012 6:55 AM
Edited by: 956308 on Aug 31, 2012 6:57 AMContents of the response file:
oracle.install.responseFileVersion=http://www.oracle.com/2007/install/rspfmt_clientinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=slc00caz
UNIX_GROUP_NAME=oracle
INVENTORY_LOCATION=/home/psadm1/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/opt/oracle/psft/pt/oracle-client/11.2.0.x
ORACLE_BASE=/opt/oracle/psft/pt/oracle-client
oracle.install.client.installType=Custom
oracle.install.client.upgrading=false
oracle.install.client.customComponents=oracle.rdbms.util:11.2.0.3.0,oracle.javavm.client:11.2.0.3.0,oracle.sqlplus:11.2.0.3.0,oracle.dbjava.jdbc:11.2.0.3.0,oracle.rdbms.oci:11.2.0.3.0,oracle.xdk:11.2.0.3.0,oracle.network.aso:11.2.0.3.0,oracle.assistants.oemlt:11.2.0.3.0,oracle.network.client:11.2.0.3.0,oracle.odbc:11.2.0.3.0,oracle.dbdev:11.2.0.3.0
oracle.install.client.schedulerAgentHostName=
oracle.install.client.schedulerAgentPortNumber=
oracle.installer.autoupdates.option=SKIP_UPDATES
oracle.installer.autoupdates.downloadUpdatesLoc=
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
PROXY_HOST=
PROXY_PORT=0
PROXY_USER=
PROXY_PWD=
PROXY_REALM= -
Hi!
I have to make an http web server: in a browser, I write http://ServerName:port/file and the browser must display the file. The only problem now seems to be that I changed
This line gets the OutputStream of the client socket
out = new PrintWriter(new OutputStreamWriter(scliente.getOutputStream(),"8859_1"),true) ;And this thing sends the response to the browser:
out.println("HTTP/0.9 200 ok");
out.println("Server: Nombre del Servidor/1.0");
out.println("Date: " + new Date());
out.println("Content-Type: text/html");
out.println("Content-Length: " + file.length());
out.println(System.getProperty("line.separator"));
BufferedReader localFile= new BufferedReader(new FileReader(archivo));
String line= "";
do
line = localFile.readLine();
if (line != null )
// sleep(500);
out.println(line);
while (linea!= null);The thing is... That didn't work for displaying images and other file types, which is why I changed the previous code to:
out = scliente.getOutputStream();And the other part to:
byte[] contenido;
int tamano;
escribirEnCliente("HTTP/1.1 200 ok");
escribirEnCliente("Server: Nombre del Servidor/1.0");
escribirEnCliente("Date: " + new Date());
escribirEnCliente("Content-Type: " + new MimetypesFileTypeMap().getContentType(archivo));
escribirEnCliente("Content-Length: " + archivo.length());
FileInputStream archivoLocal = new FileInputStream(archivo);
tamano = archivoLocal.available();
contenido = new byte[tamano];
do
tamano = archivoLocal.read(contenido);
out.write(contenido);
while (tamano != -1);escribir en cliente is a procedure like this:
public void escribirEnCliente(String str)
out.write(str.getBytes("8859_1"));
}This way, I thought, I could send all types of files, not only text files. But it doesn't work, it doesn't even load the page. Any suggestions?...and in your do/while loop think what happens when read() does return -1. You still write the entire buffer. You should do something like this instead:
while (true) {
int count = in.read(buf);
if (count == -1)
break;
out.write(buf, 0, count);
} -
Can one put IBM HTTP Web Server in front of WLS so that all HTTP requets go to IBM HTTP Web Server and redirects to WLS.
Yes, but I've never tested the plug-in (Apache) for Weblogic with IBM's
build. (The IBM HTTP server is Apache.)
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com/coherence.jsp
Tangosol Coherence: Clustered Replicated Cache for Weblogic
"SY" <[email protected]> wrote in message
news:3d2c57b9$[email protected]..
Can one put IBM HTTP Web Server in front of WLS so that all HTTP requetsgo to IBM HTTP Web Server and redirects to WLS. -
PDF has not been configured for this web server linux 11.1.2
Hi,
We installed 11.1.2 Hyperion WorkforcePlanning on Linux 32 bit OS.
When the user opens the workspace and tries to see the "Profit and Loss" and selects
"File --> Open In --> PDF format" , it just flicks for a sec and gives following message :
" PDF has not been configured for this web server"
Can somebody suggest me what to do ?
Appreciate your response.
Edited by: user536857 on Mar 22, 2011 3:07 PMCheck your print server service on your foundation server, sometimes I have had that just stop for whatever reason.
-
Specification for the Web server
Hi All,
We have BW3.5.
Presently web server is running in the production box itself.
We are planning for a separate box for the Web server.
Please give me the tips for the hardware config for the Webserver.
Thanks
BillyHi,
1) Currently there is no WSRP or JSR support
but this will be soon "standard" for all portals!
2) Device detection is available. Mobile Access pack will
be available soon. (It is available now for portal 3.0)
Cheers,
Alex :-) -
Financial Reporting - PDF has not been configured for this web server.
When I try a Print Preview of my report, I received this error "PDF has not been configured for this web server".
As far as I know, this error is confusing because when I look on my log files I found this:
--- FRLogging.log ---
[APP: FINANCIALREPORTING#11.1.2.0] The system cannot access the Print Server at this time. Try again later or confirm the print server name.
[APP: FINANCIALREPORTING#11.1.2.0] Cannot connect to server on xxxHFRCE04.cf.gouv.qc.ca
[APP: FINANCIALREPORTING#11.1.2.0] Attempt to get an undefined configuration property
--- FRPrintLogging.log ---
HyperionReportException: Could not connect to the server.Please make sure that the server is running as specified in the logon dialog (including port number if not default).
I read a lot of document but it seem to be au communication issues!!!
Can someone help me with that.I believe the supported version for ghost script is 7.0.6; I had the same problem and after installing the lower version it worked like a charm.
If you cant find the older version let me know, I'll email it to you or place it in my website. -
Trouble compiling sleepycat perl module for dbxml on win32
I'm trying to compile the perl module for Oracle DB XML with no luck so far. I've added nmake and cl to my path using the vcvars32 script. But running 'perl Makefile.PL -config.win32' produces:
Note (probably harmless): No library found for DB
Note (probably harmless): No library found for XML
Note (probably harmless): No library found for 2.3.10/lib
Note (probably harmless): No library found for -llibdb45
Writing Makefile for Sleepycat::Db
Note (probably harmless): No library found for DB
Note (probably harmless): No library found for XML
Note (probably harmless): No library found for 2.3.10/lib
Note (probably harmless): No library found for -llibdbxml23
Note (probably harmless): No library found for -llibdb45
Note (probably harmless): No library found for -lxerces-c_2
Note (probably harmless): No library found for -lxqilla10
Writing Makefile for Sleepycat::DbXml
Writing Makefile for Sleepycat::DbXml
That might not be a problem, although I think all of those libraries are included with the dbxml download. In any case, running nmake fails:
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
nmake -f Makefile all -nologo
cp Db.pod ..\blib\lib\Sleepycat\Db.pod
cp DbEnv.pod ..\blib\lib\Sleepycat\DbEnv.pod
cp DbTxn.pod ..\blib\lib\Sleepycat\DbTxn.pod
cp Db.pm ..\blib\lib\Sleepycat\Db.pm
cp Dbc.pod ..\blib\lib\Sleepycat\Dbc.pod
cp Dbt.pod ..\blib\lib\Sleepycat\Dbt.pod
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -noprototypes -C++ -ty
pemap ../typemap -typemap C:\Perl\lib\ExtUtils\typemap Db.xs > Db.xsc && C:\Per
l\bin\perl.exe -MExtUtils::Command -e mv Db.xsc Db.c
cl -TP /EHsc -c -IC:/Berkeley DB XML 2.3.10/include -nologo -EHsc -GF
-W3 -MD -O1 -Gd -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL
IMPLICITCONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -nologo
-DVERSION=\"2.003\" -DXS_VERSION=\"2.003\" "-IC:\Perl\lib\CORE" Db.c
DB
c1xx : fatal error C1083: Cannot open source file: 'DB': No such file or directo
ry
XML
c1xx : fatal error C1083: Cannot open source file: 'XML': No such file or direct
ory
include
c1xx : fatal error C1083: Cannot open source file: '2.3.10/include': No such fil
e or directory
Db.c
Db.xs(7) : fatal error C1083: Cannot open include file: 'db_cxx.h': No such file
or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.EXE"' : return code '0x2'
Stop.
Any ideas what I'm doing wrong?I figured it out. I discovered that the developer tools weren't installed by default on the Darwin OS. I downloaded them from the Apple site, installed the dmg file and then installed the required Perl modules and then it worked beautifully.
The problem was that the modules couldn't make properly when being installed.
Fun Fun
Donna -
Error - No cookies
Your browser does not support cookies, which are required for this web server to work in session authentication mode
This is a NOSCRIPT PROBLEM and NOT a Firefox problem.......
when disabled it works JUST FINEError - No cookies
Your browser does not support cookies, which are required for this web server to work in session authentication mode
This is a NOSCRIPT PROBLEM and NOT a Firefox problem.......
when disabled it works JUST FINE -
Fail installing perl modules in new sparc server
Hi,
I'm trying to install the perl modules needed by my applications in a sparc server SunFire V210 with solaris 9 64bit. All the attempts fail because the interpreter is compiled with forte, this is the explanation i got. I found a solution in CPAN called perlgcc but it doesn't work it build a bad Makefile, the file has a lot of mistakes. Perl.com people tell me to change parameters in the makefiles and Config.pm but it's very hard to find the correct values, i'm not sure i fix the correct things.still it doesn't work.
I need an urgent solution it permits me to add modules without correction in the each makefile. I hope there is a standar procedure to solve it.
Thanks!Hi,
Here is your solution (I hope). I've being doing this this week and worked.
Look the stuff is connected with the compilers used to complie perl and as you see later other stuff on the sun. At the sun the stuff is compiled with sun compiler which is not provided on the solaris 8, 9 nor 10. Fortunately there is gcc installed on the sol10.
-bash-3.00# gcc --version<br />
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-bash-3.00#
The perl is compiled with sun compiler cc
-bash-3.00# perl -V | more
More
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
More
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-64int
uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
f
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_T
S_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lsee
ksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.
4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
What to do??? Yes - you are on sol10 - then do it
1. Logon as a root
2. Check your path and compare with
-bash-3.00# echo $PATH
/usr/sbin:/usr/bin:/usr/sfw:/usr/sfw/bin:/usr/sfw/lib:/usr/s fw/include:/opt/sfw:
/opt/sfw/bin:/opt/sfw/lib:/opt/sfw/include:/usr/ccs/bin:/usr /ccs/lib
-bash-3.00#
if differs upto the last /usr/ccs/lib modify your profile file ( anthing ofter the last /usr/ccs/lib can be aded).
3. Check out the the comands
gcc --version<br />
perl -V
4. If everything upto this step is ok you can proceed
5. You may do the installation of the perl modules in two ways:
a.) with CPAN module - Internet connection MANDATORY
b.) with perl and downloaded tar.gz module
5.a) With CPAN module
5.a.1) Launch the command to configure the CPAN module
perl -MCPAN -e shell
you will be asked to give the answers inorder to configure CPAN
5.a.2) When you see cpan> prompt do the following:
o conf makepl_arg 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc' press return
5.a.3) Type "o conf commit" press return. You may install your modules now with the install command e.g. install HTML::Parser for example.
5.b.1) Download your modules from http://www.cpan.org to your server to /var/tmp/packed or whatever folder you want.
5.b.2) unzip then untar and cd into subfolder
5.b.3) type ./Makefile.PL -t 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc'
5.b.4) Type make install
6.) In both methods you have to check if the modules are installed by issuing the commnad:
perl -e 'use Your::Module' e.g.
perl -e 'use HTTP::Parser'
if no error message on the term you are ready
Rem. The differrences are in the flags used to compile and link with these two compilers sun cc and gnu cc. There are of course problems with 64bit values on sun64bit e.g. SPARC and Intel stuff cause Perl does not support real 64bit values yet. The Perl modules should use only floating point represetnation with around 53~bit precision. But this issue depends on the module creator not you if you do not want to do the remedy.
I hope it will help you
good luck -
Can't install perl modules for bugzilla
I'm currently attempting to install Bugzilla on my Arch server. This service depends on Perl and a collection of modules.
I attempted:
perl install-module.pl --all
... and it worked, so it seemed. However, when attempting to run my install script again, I am warned that the module DBI is not installed. I attempt to install it manually (specify it in particular with the previous command), and it says that DBI is up to date. I attempt the script again, and still get the error.
Is this a bug with Bugzilla's install script, or with the installation of Perl modules?Here is a link to a resolution in Lion. It may also solve your Mountain Lion Perl DBD issue as well.
If you run the command below before executing your Perl script the library is found and all is well!
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
Put this in your .bashrc or .bash_profile.
On Apple StackExchange, Matthew Weiss had another approach.
I found on another website the following command
$ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'
This updated all my perl modules and all is back to normal. Not sure why or what, but don't care that it is working now. -
Hello
I am trying to learn something new here. We have web server inside our organization its IP address is 172.16.0.35. We want outside Internet users to access web server, How is it possible? Please have a look at the running configuration. Web server is working inside the organization but not at outside. Our Static Public IP is 197.255.232.15 it is assigned to Inetrface Gigabit ATM0.1 and ISP default GW is 197.255.232.1. Let me know whats next? How do I make web server inside the organization available for outside Internet users. Thank you.
Building configuration.
Current configuration : 1983 bytes
! Last configuration change at 17:57:15 UTC Sat Jan 24 2015
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname router_test
boot-start-marker
boot-end-marker
no aaa new-model
memory-size iomem 10
ip dhcp excluded-address 172.16.0.34
ip dhcp pool test
network 172.16.0.32 255.255.255.224
dns-server 197.255.224.18 197.255.224.66
default-router 172.16.0.34
lease 9
ip cef
no ipv6 cef
license udi pid CISCO887VA-K9 sn FGL1818236L
controller VDSL 0
interface Ethernet0
no ip address
shutdown
interface ATM0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
no atm ilmi-keepalive
interface ATM0.1 point-to-point
description ATM Routed Bridge Encapsulation (RBE) Internet
ip address 197.255.232.15 255.255.248.0
ip access-group netin in
ip access-group netout out
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly in
atm route-bridged ip
bridge-group 1
bridge-group 1 spanning-disabled
pvc 0/35
encapsulation aal5snap
protocol ip inarp
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface Vlan1
description Lan
ip address 172.16.0.34 255.255.255.224
ip nat inside
ip virtual-reassembly in
ip tcp adjust-mss 1454
interface Dialer1
no ip address
ip default-gateway 197.255.232.1
ip forward-protocol nd
no ip http server
no ip http secure-server
ip nat inside source list natlist interface ATM0.1 overload
ip nat inside source static tcp 172.16.0.35 443 197.255.232.15 443 extendable
ip route 0.0.0.0 0.0.0.0 ATM0.1 197.255.232.1
ip access-list extended natlist
permit ip 172.16.0.32 0.0.0.31 any
line con 0
no modem enable
line aux 0
line vty 0 4
login
transport input all
end
http://pastie.org/9858814Hi Karsten Iwen
I deleted ( ip access-group netin in and ip access-group netout out) but it still does not work
my config :
Building configuration...
Current configuration : 2267 bytes
! Last configuration change at 15:43:06 UTC Wed Jan 28 2015
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname router
boot-start-marker
boot-end-marker
no aaa new-model
memory-size iomem 10
ip dhcp excluded-address 172.16.0.34
ip dhcp pool my
network 172.16.0.32 255.255.255.224
dns-server 197.255.224.18 197.255.224.66
default-router 172.16.0.34
lease 9
ip cef
no ipv6 cef
license udi pid CISCO887VA-K9 sn FGL1818236L
controller VDSL 0
interface Ethernet0
no ip address
shutdown
interface ATM0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
no atm ilmi-keepalive
interface ATM0.1 point-to-point
description ATM Routed Bridge Encapsulation (RBE) Internet
ip address 197.255.232.15 255.255.248.0
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
no ip virtual-reassembly in
atm route-bridged ip
pvc 0/35
encapsulation aal5snap
no protocol ip inarp
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface Vlan1
description
ip address 172.16.0.34 255.255.255.224
ip nat inside
no ip virtual-reassembly in
ip tcp adjust-mss 1414
interface Dialer1
no ip address
ip default-gateway 197.255.232.1
ip forward-protocol nd
no ip http server
no ip http secure-server
ip nat inside source list natlist interface ATM0.1 overload
ip nat inside source static tcp 172.16.0.35 443 197.255.232.15 443 extendable
ip route 0.0.0.0 0.0.0.0 ATM0.1 197.255.232.1
ip access-list extended natlist
permit ip 172.16.0.32 0.0.0.31 any
line con 0
no modem enable
line aux 0
line vty 0 4
end
Router#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 197.255.232.15:5183 172.16.0.33:5183 212.95.74.5:80 212.95.74.5:80
tcp 197.255.232.15:5196 172.16.0.33:5196 212.95.74.5:80 212.95.74.5:80
tcp 197.255.232.15:5602 172.16.0.33:5602 174.129.246.27:80 174.129.246.27:80
tcp 197.255.232.15:5785 172.16.0.33:5785 31.13.93.3:443 31.13.93.3:443
tcp 197.255.232.15:443 172.16.0.35:443 --- --- -
Is there any API for connecting web server and iphone apps
Hi,
I have to retrieve data from Web Server and display in my iphone apps. I want to know that is there any API through which i can connect my apps to server and get data.
One way i know that use NSURLConnection and get XML response and prase it and use it like that.
So anyone know this?
Thanks.NSURLConnection is straightforward to use. In the mobile world, and especially if you intend to use certain google APIs, I would rather tend to use JSON instead of XML. A great JSON parser for objective-c is here: http://code.google.com/p/json-framework/
Cheers,
Marcelo -
Strange HTTP/Web Server Problem - HELP ~~~~~~~
HI all,
I would like to seek help from you - the apple expert!
I received my mac mini server and immediate want to setup a web/http server. I encountered one very strange problem that only the mac mini server itself can access the http server page but not all other machines in the same internal network. I tried to troubleshoot and so simplify the setting as follow
Here is my setting
- The Web Server service is ON
- I closed all the built in web services (wiki, cal, blogs, webmail) for troubleshoot
- I created a "Custom Sites" with 192.168.11.9:8080 <- this is my mac mini ip
- Ensured the /Library/WebServer/Sites/192.168.11.9 got right permission
When i open IE in my window vista laptop, type in address "http://192.168.11.9:8080", it doesn't work. Is there anything i need to config so that other machine (Win OS) in the internal network can also access the http server in my mac mini?
Thank you very much.
A newbies in mini...and in your do/while loop think what happens when read() does return -1. You still write the entire buffer. You should do something like this instead:
while (true) {
int count = in.read(buf);
if (count == -1)
break;
out.write(buf, 0, count);
}
Maybe you are looking for
-
Why can't I print from Illustrator a non-faded print. It always prints as if I wanted a proof or something.
-
HDTV Resolution not supported, Desktop lost
I connected a HDTv to my G4. The image was great but circles were ellipses. I changed the resolution several times but one lost everything on the panel. It looks like a dark curtain. Changing the sets mode to a different input and then coming back sh
-
Can you have the PDF file do calculations in a fillable Acrobat PDF?
I want to create a hot lunch form for our school. I want to be able to have the user fill in the QUANTITY, but have the form automatically multiply the quantity by the cost to and give the total amount due. Is this possible? Should I create the fo
-
When trying to open an html file firefox keeps opening the open file dialog in a new tab. I have run malware byte with no success. The file never opens. Finally refreshed Firefox problem resolved...
-
PekWM window placement / moving
I just started using PekWM and really like it, but I'm having trouble with two points. 1) Is there a way to set window placement to be random? By default it's set to "CenteredOnParent Smart MouseNotUnder", and it doesn't seem to center on anything, a