Solved

for b2pi only

Posted on 1998-12-08
2
196 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
perl search and replace 6 165
Perl troubleshooting error. Base64 bootstrap parameter 5 63
Parse csv file and generate graphs in HTML in bash 8 156
Perl Untar File 1 25
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

943 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now