[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

for b2pi only

Posted on 1998-12-08
2
Medium Priority
?
239 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Six Sigma Control Plans
Suggested Courses

834 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