Solved

for b2pi only

Posted on 1998-12-08
2
184 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
Comment Utility
Edited text of question
0
 
LVL 5

Accepted Solution

by:
b2pi earned 50 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

6 Experts available now in Live!

Get 1:1 Help Now