?
Solved

for b2pi only

Posted on 1998-12-08
2
Medium Priority
?
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Six Sigma Control Plans
Suggested Courses

765 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