Re: DBI install

2008-07-01 Thread Jeff Peng
On Tue, Jul 1, 2008 at 8:39 PM,  <[EMAIL PROTECTED]> wrote:
> Can any one help me out in Installing DBI in a standalone box. There is no 
> internet connetion. I tried downloading DBI-1.48 module and tried using ppm 
> and makefile.PL its not working. I am doing it correct or missing something?
>

Posting the error messages here is helpful.
Otherwise the people on the list don't know what happened to you.

-- 
Regards,
Jeff. - [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: DBI install

2008-07-01 Thread Francisco Valladolid
Hi,

if you don't have internet connection, the easy form is downloading
the module via cpan.

http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.605.tar.gz

later you have to decompress it with :

$ tar -xzvf DBI-1.605.tar.gz
# cd DBI...
# perl Makefile.PL
# make && make install

can do the work.

Regards.


On Tue, Jul 1, 2008 at 5:09 PM,  <[EMAIL PROTECTED]> wrote:
> Can any one help me out in Installing DBI in a standalone box. There is no 
> internet connetion. I tried downloading DBI-1.48 module and tried using ppm 
> and makefile.PL its not working. I am doing it correct or missing something?
>



-- 
Francisco Valladolid H.
 -- http://bsdguy.net - Jesus Christ follower.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




RE: DBI Install

2004-08-04 Thread NYIMI Jose \(BMB\)


> -Original Message-
> From: Witzke, Rob [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 04, 2004 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: DBI Install
> 
> ...
> /bin/sh: /opt/SUNWspro/bin/cc: not found
> make: *** [Perl.o] Error 1

Your compiler was not found ...

José.



 DISCLAIMER 

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: DBI Install

2004-08-04 Thread Chris Devers
On Wed, 4 Aug 2004, Witzke, Rob wrote:
I am trying to install DBI on a Sun Solaris box but am running into 
problems.
Have you tried using the CPAN shell? If you have it available, it's 
*much* easier than the way you're trying it.

$ sudo perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled
cpan> install DBI
And you're done.
Actually, that's a gentle lie -- if you haven't used the CPAN shell 
before, you'll be asked a series of configuration questions before you 
get to the 'cpan>' prompt, but most of them are straightforward and you 
can usually just accept the defaults.

Once you're done setting up the shell, you get the 'cpan>' prompt and 
from there it's one line to install any module: "install My::Module".

That said...
/opt/SUNWspro/bin/cc -c   -I/usr/local/include -O   -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\" 
-KPIC "-I/usr/local/sirsi/lib/perl5/5.8.0/sun4-solaris/CORE"  -DDBI_NO_THREADS Perl.c
/bin/sh: /opt/SUNWspro/bin/cc: not found
make: *** [Perl.o] Error 1
...do you actually have a C compiler at /opt/SUNWspro/bin/cc ?
The message said that I had perl version 5.008 installed but I actuall 
have the following:

DEVELOP 66% perl -v
This is perl, v5.8.0 built for sun4-solaris
Perl 5.008 *is* 5.8.0.
The reasons for this are old & boring, but basically Perl 5 just kept 
having micro .00x releases for a few years before people got around to 
making the numbers more sensible by masking over a couple of the zeroes. 
Hence, 5.006x is 5.6.x, and 5.8.x is 5.008x. You're more likely to see 
the version represented as 5.x.y these days, but some things will still 
present it as 5.00xy like it used to be. Don't worry about it.


--
Chris Devers  [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/
np: 'Moon River'
 by Henry Mancini
 from 'The Best Of Mancini'
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: DBI Install

2004-08-04 Thread Witzke, Rob
Well, it seems that I don't have a c compiler loaded.  (I thought that I did)

Is is possible to get the DBI stuff pre-compiled?

Where can I get the CPAN shell?  I looked for it on the CPAN web site but I don't see 
it.
If I do find it, will it do any good without a C compiler?

Rob

-Original Message-
From: Chris Devers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 9:53 AM
To: Witzke, Rob
Cc: [EMAIL PROTECTED]
Subject: Re: DBI Install


On Wed, 4 Aug 2004, Witzke, Rob wrote:

> I am trying to install DBI on a Sun Solaris box but am running into 
> problems.

Have you tried using the CPAN shell? If you have it available, it's 
*much* easier than the way you're trying it.

 $ sudo perl -MCPAN -e shell

 cpan shell -- CPAN exploration and modules installation (v1.76)
 ReadLine support enabled

 cpan> install DBI

And you're done.

Actually, that's a gentle lie -- if you haven't used the CPAN shell 
before, you'll be asked a series of configuration questions before you 
get to the 'cpan>' prompt, but most of them are straightforward and you 
can usually just accept the defaults.

Once you're done setting up the shell, you get the 'cpan>' prompt and 
from there it's one line to install any module: "install My::Module".

That said...

> /opt/SUNWspro/bin/cc -c   -I/usr/local/include -O   -DVERSION=\"1.42\" 
> -DXS_VERSION=\"1.42\" -KPIC "-I/usr/local/sirsi/lib/perl5/5.8.0/sun4-solaris/CORE"  
> -DDBI_NO_THREADS Perl.c
> /bin/sh: /opt/SUNWspro/bin/cc: not found
> make: *** [Perl.o] Error 1

...do you actually have a C compiler at /opt/SUNWspro/bin/cc ?

> The message said that I had perl version 5.008 installed but I actuall 
> have the following:
>
> DEVELOP 66% perl -v
>
> This is perl, v5.8.0 built for sun4-solaris

Perl 5.008 *is* 5.8.0.

The reasons for this are old & boring, but basically Perl 5 just kept 
having micro .00x releases for a few years before people got around to 
making the numbers more sensible by masking over a couple of the zeroes. 
Hence, 5.006x is 5.6.x, and 5.8.x is 5.008x. You're more likely to see 
the version represented as 5.x.y these days, but some things will still 
present it as 5.00xy like it used to be. Don't worry about it.



-- 
Chris Devers  [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/

np: 'Moon River'
  by Henry Mancini
  from 'The Best Of Mancini'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




RE: DBI Install

2004-08-04 Thread Witzke, Rob
Chris,

Thank you very much for you help.

I ran your command $ perl -MDBI -e '1' and got no results so I guess that is a good 
thing.

I will be looking into getting a c compiler.  Any suggestions?

Rob

-Original Message-
From: Chris Devers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 10:29 AM
To: Witzke, Rob
Cc: PerlBeginners (E-mail)
Subject: RE: DBI Install


On Wed, 4 Aug 2004, Witzke, Rob wrote:

> Well, it seems that I don't have a c compiler loaded.  (I thought that 
> I did)

That'll slow you down :-)

> Is is possible to get the DBI stuff pre-compiled?

Maybe, but DBI is often available with Perl itself. Have you verified 
that you don't already have it? What happens if you run this:

 $ perl -MDBI -e '1'
 $

You should get no output, no errors, if it's installed. If you don't 
have it, you should get something like this:

 $ perl -MFictionalModule -e '1'
 Can't locate FictionalModule.pm in @INC (@INC contains:
 /System/Library/Perl/5.8.1/darwin-thread-multi-2level
 /System/Library/Perl/5.8.1
 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
 /Network/Library/Perl/5.8.1 /Network/Library/Perl .).
 BEGIN failed--compilation aborted.
 $

The paths will be different, but the error will be similar.

> Where can I get the CPAN shell?  I looked for it on the CPAN web site 
> but I don't see it. If I do find it, will it do any good without a C 
> compiler?

Again, it's frequently available with recent versions of Perl -- you 
mentioned 5.8.0, which really ought to have it by default. Try this:

 $ perl -MCPAN -e '1'

If that gives no errors, you've got it -- run it by doing a

 $ perl -MCPAN -e 'shell'

As noted before, you have to set it up the first time, but after that it 
should Just Work.


Note though that a lot of CPAN modules depend on a C compiler, and using 
the CPAN shell doesn't get you around that requirement. The CPAN shell 
just automates the process of finding, downloading, building, testing, 
and installing modules, but if you're missing the system tools needed to 
do any of those steps -- such as a C compiler -- then CPAN can't help.


-- 
Chris Devers  [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/

np: 'Baby Elephant Walk'
  by Henry Mancini
  from 'The Best Of Mancini'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




RE: DBI Install

2004-08-04 Thread Chris Devers
On Wed, 4 Aug 2004, Witzke, Rob wrote:
Well, it seems that I don't have a c compiler loaded.  (I thought that 
I did)
That'll slow you down :-)
Is is possible to get the DBI stuff pre-compiled?
Maybe, but DBI is often available with Perl itself. Have you verified 
that you don't already have it? What happens if you run this:

$ perl -MDBI -e '1'
$
You should get no output, no errors, if it's installed. If you don't 
have it, you should get something like this:

$ perl -MFictionalModule -e '1'
Can't locate FictionalModule.pm in @INC (@INC contains:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level
/System/Library/Perl/5.8.1
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
/Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
/Network/Library/Perl/5.8.1 /Network/Library/Perl .).
BEGIN failed--compilation aborted.
$
The paths will be different, but the error will be similar.
Where can I get the CPAN shell?  I looked for it on the CPAN web site 
but I don't see it. If I do find it, will it do any good without a C 
compiler?
Again, it's frequently available with recent versions of Perl -- you 
mentioned 5.8.0, which really ought to have it by default. Try this:

$ perl -MCPAN -e '1'
If that gives no errors, you've got it -- run it by doing a
$ perl -MCPAN -e 'shell'
As noted before, you have to set it up the first time, but after that it 
should Just Work.

Note though that a lot of CPAN modules depend on a C compiler, and using 
the CPAN shell doesn't get you around that requirement. The CPAN shell 
just automates the process of finding, downloading, building, testing, 
and installing modules, but if you're missing the system tools needed to 
do any of those steps -- such as a C compiler -- then CPAN can't help.

--
Chris Devers  [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/
np: 'Baby Elephant Walk'
 by Henry Mancini
 from 'The Best Of Mancini'
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: DBI Install

2004-08-04 Thread NYIMI Jose \(BMB\)
> -Original Message-
> From: Witzke, Rob [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 04, 2004 4:32 PM
> To: Chris Devers
> Cc: PerlBeginners (E-mail)
> Subject: RE: DBI Install
> 
> 
> Chris,
> 
> Thank you very much for you help.
> 
> I ran your command $ perl -MDBI -e '1' and got no results so 
> I guess that is a good thing.
> 
> I will be looking into getting a c compiler.  Any suggestions?

Have a look to DBI FAQs
http://dev.isystek.com/dbi/fom-serve/cache/12.html
From
http://dbi.perl.org

HTH,

José.


 DISCLAIMER 

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




RE: DBI Install

2004-08-04 Thread Johnson, Shaunn
--howdy:

--wouldn't it be better if you went to http://www.sunfreeware.com
--and snagged a compiler (gcc works, i believe) - i'm sure you'll use it
--for other stuff in the future anyways ...

--*shrug*

--just my $0.02 cents ...

-X


-Original Message-
From: Witzke, Rob [mailto:[EMAIL PROTECTED]



Well, it seems that I don't have a c compiler loaded.  (I 
thought that I did)

Is is possible to get the DBI stuff pre-compiled?

Where can I get the CPAN shell?  I looked for it on the CPAN 
web site but I don't see it.
If I do find it, will it do any good without a C compiler?

[snip]


RE: DBI Install

2004-08-04 Thread Chris Devers
On Wed, 4 Aug 2004, Witzke, Rob wrote:
I ran your command $ perl -MDBI -e '1' and got no results so I guess 
that is a good thing.
Yeah, that means you already have DBI.
Now you just need DBD drivers for the database[s] you need.
I will be looking into getting a c compiler.  Any suggestions?
GCC is probably a good bet if Sun doesn't make one of their own 
available. As someone else noted, try 
for things like this.

--
Chris Devers  [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/
np: 'Experiment In Terror'
 by Henry Mancini
 from 'The Best Of Mancini'
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: DBI Install

2004-08-04 Thread Bob Showalter
Witzke, Rob wrote:
> Well, it seems that I don't have a c compiler loaded.  (I thought
> that I did) 

As others have pointed out, you need a C compiler to install some modules.

However, I'm pretty sure you can't just "grab gcc" and start installing DBI.
You need to build modules with the same compiler that Perl was built with.
If you don't have that compiler, best be would be to a) get gcc, b) rebuild
Perl itself with gcc, c) then build DBI and other modules.

I may be wrong about this, so somebody correct me if I am.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: DBI Install

2004-08-04 Thread Witzke, Rob
Unfortunately, this does indeed seem to be the case and I can't rebuild perl without 
jeopardizing our primary system

Thanks for all of the suggestions,

Rob

-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 12:20 PM
To: Witzke, Rob; PerlBeginners (E-mail)
Subject: RE: DBI Install


Witzke, Rob wrote:
> Well, it seems that I don't have a c compiler loaded.  (I thought
> that I did) 

As others have pointed out, you need a C compiler to install some modules.

However, I'm pretty sure you can't just "grab gcc" and start installing DBI.
You need to build modules with the same compiler that Perl was built with.
If you don't have that compiler, best be would be to a) get gcc, b) rebuild
Perl itself with gcc, c) then build DBI and other modules.

I may be wrong about this, so somebody correct me if I am.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




RE: DBI Install

2004-08-04 Thread Witzke, Rob
That would be great.  Where can I find the instructions for that?

Rob

-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 2:49 PM
To: Witzke, Rob; PerlBeginners (E-mail)
Subject: RE: DBI Install


Witzke, Rob wrote:
> Unfortunately, this does indeed seem to be the case and I can't
> rebuild perl without jeopardizing our primary system 

You can build a second copy of Perl and point to that for your DBI scripts
by changing the shebang line...

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




RE: DBI Install

2004-08-04 Thread Bob Showalter
Witzke, Rob wrote:
> Unfortunately, this does indeed seem to be the case and I can't
> rebuild perl without jeopardizing our primary system 

You can build a second copy of Perl and point to that for your DBI scripts
by changing the shebang line...

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: DBI Install

2004-08-04 Thread Chris Devers
On Wed, 4 Aug 2004, Witzke, Rob wrote:
> Witzke, Rob wrote:
> > Unfortunately, this does indeed seem to be the case and I can't
> > rebuild perl without jeopardizing our primary system
>
> You can build a second copy of Perl and point to that for your DBI 
> scripts by changing the shebang line...

That would be great.  Where can I find the instructions for that?
With the instructions for installing Perl itself.
Just follow the regular intructions for building Perl on your platform. 
The only wrinkle to be aware of that might not be spelled out in the 
standard instructions is that you need to specify an alternate install 
directory, such as /usr/local or /opt.

If you already have a copy of Perl at /usr/bin/perl, then your installed 
version will wipe it out. This can be appealing at first, but if you do 
this then system scripts that depend on the vendor's Perl being a 
particular version in /usr/bin/perl may break, and if the vendor sends 
out a new version of Perl with some future update then your copy will 
break.

By putting your copy elsewhere, you avoid such complications.
The easiest way here is to specify "./configure --prefix=/usr/local" 
when setting up your copy, but read over the documentation that comes 
with your new version of Perl, and look over the options available from 
a "./configure --help" to see if there's anything else you want.

Beyond that, just follow the shipped directions and, as always, let the 
list know if you hit any complications.

--
Chris Devers  [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/
np: 'Fallout!'
 by Henry Mancini
 from 'The Best Of Mancini'
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE : DBI Install

2004-08-04 Thread Jose Nyimi


> -Message d'origine-
> De : Witzke, Rob [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 4 août 2004 19:36
> À : Bob Showalter; PerlBeginners (E-mail)
> Objet : RE: DBI Install
> 
> Unfortunately, this does indeed seem to be the case and I can't
rebuild
> perl without jeopardizing our primary system
> 

You could considere building your own perl and modules.
If for instance the primary perl of your system is /usr/bin/perl then
you could choose making an other one as /usr/local/bin/perl and force
your script using the later.

All of this assum that your are in alignment with your organization
policy.
Convincing sysadmin is not always possible :-)

José.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>