Solved

for b2pi only

Posted on 1998-12-08
2
207 Views
Last Modified: 2008-03-06
Hi, I have some problem to ask,
In the previous question "How to connect Sybase with perl"

You type in
1)unpack the distribution someplace reasonable.

I unpack it under cgi-bin/
then a directory "sybperl-2.10" is created.

2) Determine where you want to go (say ~/sybperl)
I don't know what this mean if I want to use it in
the cgi-bin, how can i do it?

3) from the unpacked directory, give the command
that is in sybperl-2.10 type
perl -Makefile.PL LIB=~/sybperl

The server cannot execute it and reply
"Can't open perl script "LIB=~/sybperl": No such file or directory"

If i just type perl Makefile.PL
It's ok.
Later when give the command

make install

The server said there is no permission to mkdir in the local /...
So that command is failed.

How can i do it?

Besides, you provide me a program and I want to know what is the variable $db
use at
my($db)='database';
Is it the name of schema?
Thank you very much!
0
Comment
Question by:CWL
2 Comments
 

Author Comment

by:CWL
ID: 1206795
Edited text of question
0
 
LVL 5

Accepted Solution

by:
b2pi earned 50 total points
ID: 1206796
First, you really should attempt to convince your system administrator to install it globally (Things work more smoothly that way). Secondly, apparently I was having some typing problems.

If you really can't get your administrator to install it, do the following

1)unpack the distribution someplace reasonable.
'someplace reasonable' like /tmp, or ~/perl/build

2) Determine where you want to go (say ~/sybperl)
that should have been where you want _it_ to go, i.e. where you want the module installed.  A good choice might be ~/sybperl, but make sure, at the end, to verify that everything in ~/sybperl is world readable

3) from the unpacked directory, give the command
perl -Makefile.PL LIB=~/sybperl

That should have been
perl Makefile.PL LIB=~/sybperl

and yes, the unpacked directory would be ~/sybperl/sybperl-2.10 (once you're done installing, you can delete the entire ~/sybperl tree)

4. Then give the commands (read the README first)
make
make test
make install

5. A sybase server has within it a bunch of databases. It always has a 'master' database and a 'tmp' database.  You can get a list of the databases in a server by logging into that server via isql, and executing the sql code

select name from master..sysdatabases
go

Whatever database you're using is the value of the $db variable.

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
iSeries PERL Scripts 7 159
Move Function in Perl Script 2 68
Perl Awk Need Help 3 118
quoting a comma separated list 20 84
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question