Re: New to Mac - need help compiling a package

2009-04-28 Thread Jeremiah Foster


On Apr 27, 2009, at 22:23, Shai Simchi wrote:


Hi,
I am new to Mac (not to perl). I have a package Net- 
Twitter-2.12.tar.gz
which I want to start using but not sure how to make the package  
available

on my perl installation.


Have you looked at installing with CPAN?

Jeremiah


Re: New to Mac - need help compiling a package

2009-04-28 Thread Shai Simchi
I would love to look into this option as well. Do you have any documented
procedure to share?

Thanks,

Shai


On 4/28/09 1:50 AM, Jeremiah Foster jerem...@jeremiahfoster.com wrote:

 
 On Apr 27, 2009, at 22:23, Shai Simchi wrote:
 
 Hi,
 I am new to Mac (not to perl). I have a package Net-
 Twitter-2.12.tar.gz
 which I want to start using but not sure how to make the package
 available
 on my perl installation.
 
 Have you looked at installing with CPAN? 
 
 Jeremiah




Re: New to Mac - need help compiling a package

2009-04-28 Thread Jeremiah Foster


On Apr 28, 2009, at 18:52, Shai Simchi wrote:

I would love to look into this option as well. Do you have any  
documented

procedure to share?


Sure, try the command `cpan` on the command line. I think it is pre- 
installed on the Mac. If not, it is not hard to install.


Here is more info on CPAN;
http://theoryx5.uwinnipeg.ca/CPAN/perl/lib/CPAN.html

To install something, i.e. a module. issue this command;
perl -MCPAN -e shell My::Module

Hope that helps, if not, post any questions you have here.

Jeremiah


Thanks,

Shai


On 4/28/09 1:50 AM, Jeremiah Foster jerem...@jeremiahfoster.com  
wrote:




On Apr 27, 2009, at 22:23, Shai Simchi wrote:


Hi,
I am new to Mac (not to perl). I have a package Net-
Twitter-2.12.tar.gz
which I want to start using but not sure how to make the package
available
on my perl installation.


Have you looked at installing with CPAN?

Jeremiah








Re: New to Mac - need help compiling a package

2009-04-28 Thread Chas. Owens
On Tue, Apr 28, 2009 at 12:52, Shai Simchi s...@mashery.com wrote:
 I would love to look into this option as well. Do you have any documented
 procedure to share?
snip

It should be as simple as saying

cpan Net::Twitter

The problem is that you must either setup a place that a non-root user
can install to (what I am trying to walk you through) or you must run
it as root.  There are many dangers to running it as root, not the
least of which is the fact that you are modifying stuff that Apple
claims as its own.  If you heard about the recent mess involving the
latest update to OS X breaking Perl, well, that is the sort of thing
that can happen when you install modules as root.  I find it much
better to install as a normal user, that way my modules are safe from
OS updates screwing with them.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.


Re: New to Mac - need help compiling a package

2009-04-27 Thread Chas. Owens
On Mon, Apr 27, 2009 at 16:23, Shai Simchi s...@mashery.com wrote:
 Hi,
 I am new to Mac (not to perl). I have a package Net-Twitter-2.12.tar.gz
 which I want to start using but not sure how to make the package available
 on my perl installation.
 I am running on Mac OSX 10.0.5.6
snip

Long intial setup way that saves time later when you want to install
other modules

* login as yourself
* open a terminal
* download local::lib[1]
* untar local::lib (tar xvfz local-lib-1.003003.tar.gz)
* change directory into the resulting directory (cd local-lib-1.003003)
* type perl Makefile.PL --bootstrap without the quotes
* wait while it downloads and installs the necessary modules
* type make
* type make test, if something fails send the error message to this list
* if nothing fails type make install
* add this line to your .bash_profile, .bashrc, or .profile (whichever
you use) eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
* close the terminal
* open the terminal again (this should load the new environment variable)
* type cpan Net::Twitter and watch it install it for you

Shorter initial method that leads to a lot of pain latter
* download Net::Twitter from cpan
* decompress it
* change directory into the resulting directory
* type Perl Makefile.PL PREFIX=~/perl5
* type make
* type make test
* if any of the steps above fail contact this list with the error message
* type make install
* add export PERL5LIB=~/perl5/the/path/leading/up/to/the/twitter/dir
to .profile, .bash_profile, or .bashrc (whichever you use).
* close terminal
* open terminal



1. http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.003003.tar.gz


-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.


Re: New to Mac - need help compiling a package

2009-04-27 Thread Shai Simchi
Hi and thanks for the info.
I have tried your option 1 and it fails during perl Makefile.PL --bootstrap
With the following error:
  CPAN.pm: Going to build A/AD/ADAMK/File-HomeDir-0.86.tar.gz

Checking if your kit is complete...
Looks good
'INSTALL_BASE' is not a known MakeMaker parameter name.
Writing Makefile for File::HomeDir
-- NOT OK
Running make test
Running make install
  Can't test without successful make
  make had returned bad status, install seems impossible
Running make for A/AN/ANDK/CPAN-1.9304.tar.gz
  Is already unwrapped into directory
/Users/shaisimchi/.cpan/build/CPAN-1.9304

  CPAN.pm: Going to build A/AN/ANDK/CPAN-1.9304.tar.gz

-- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
*** CPAN installation failed.
*** Module::AutoInstall installation finished.
Warning: prerequisite CPAN 1.80 not found. We have 1.760200.
Warning: prerequisite ExtUtils::MakeMaker 6.31 not found. We have 6.300.
'INSTALL_BASE' is not a known MakeMaker parameter name.
Writing Makefile for local::lib

In addition I have earlier tried option 2 but the make command fails with
the following error:
bash: make: command not found

Thanks again,

Shai


On 4/27/09 1:48 PM, Chas. Owens chas.ow...@gmail.com wrote:

 tar xvfz local-lib-1.003003.tar.gz




Re: New to Mac - need help compiling a package

2009-04-27 Thread Chas. Owens
On Mon, Apr 27, 2009 at 17:01, Shai Simchi s...@mashery.com wrote:
 Hi and thanks for the info.
 I have tried your option 1 and it fails during perl Makefile.PL --bootstrap
 With the following error:
  CPAN.pm: Going to build A/AD/ADAMK/File-HomeDir-0.86.tar.gz

 Checking if your kit is complete...
 Looks good
 'INSTALL_BASE' is not a known MakeMaker parameter name.
 Writing Makefile for File::HomeDir
    -- NOT OK
 Running make test
 Running make install
  Can't test without successful make
  make had returned bad status, install seems impossible
 Running make for A/AN/ANDK/CPAN-1.9304.tar.gz
  Is already unwrapped into directory
 /Users/shaisimchi/.cpan/build/CPAN-1.9304

  CPAN.pm: Going to build A/AN/ANDK/CPAN-1.9304.tar.gz

    -- NOT OK
 Running make test
  Can't test without successful make
 Running make install
  make had returned bad status, install seems impossible
 *** CPAN installation failed.
 *** Module::AutoInstall installation finished.
 Warning: prerequisite CPAN 1.80 not found. We have 1.760200.
 Warning: prerequisite ExtUtils::MakeMaker 6.31 not found. We have 6.300.
 'INSTALL_BASE' is not a known MakeMaker parameter name.
 Writing Makefile for local::lib

 In addition I have earlier tried option 2 but the make command fails with
 the following error:
 bash: make: command not found

 Thanks again,

 Shai


 On 4/27/09 1:48 PM, Chas. Owens chas.ow...@gmail.com wrote:

 tar xvfz local-lib-1.003003.tar.gz




Hmm, you may need to install xcode[1].  It is basically Apple's
version of gcc and associated utilities.  Luckily it is free.

1. http://developer.apple.com/technology/xcode.html

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.


Re: New to Mac - need help compiling a package

2009-04-27 Thread Shai Simchi
I get pretty much the same results after installing xcode. When I do the
Makefile.PL --bootstrap

But when I just type make this time I get:
No targets specified and no makefile foundmake: *** .  Stop.

Anything I am doing wrong now?

Thanks,

Shai


On 4/27/09 2:07 PM, Chas. Owens chas.ow...@gmail.com wrote:

 On Mon, Apr 27, 2009 at 17:01, Shai Simchi s...@mashery.com wrote:
 Hi and thanks for the info.
 I have tried your option 1 and it fails during perl Makefile.PL --bootstrap
 With the following error:
  CPAN.pm: Going to build A/AD/ADAMK/File-HomeDir-0.86.tar.gz
 
 Checking if your kit is complete...
 Looks good
 'INSTALL_BASE' is not a known MakeMaker parameter name.
 Writing Makefile for File::HomeDir
    -- NOT OK
 Running make test
 Running make install
  Can't test without successful make
  make had returned bad status, install seems impossible
 Running make for A/AN/ANDK/CPAN-1.9304.tar.gz
  Is already unwrapped into directory
 /Users/shaisimchi/.cpan/build/CPAN-1.9304
 
  CPAN.pm: Going to build A/AN/ANDK/CPAN-1.9304.tar.gz
 
    -- NOT OK
 Running make test
  Can't test without successful make
 Running make install
  make had returned bad status, install seems impossible
 *** CPAN installation failed.
 *** Module::AutoInstall installation finished.
 Warning: prerequisite CPAN 1.80 not found. We have 1.760200.
 Warning: prerequisite ExtUtils::MakeMaker 6.31 not found. We have 6.300.
 'INSTALL_BASE' is not a known MakeMaker parameter name.
 Writing Makefile for local::lib
 
 In addition I have earlier tried option 2 but the make command fails with
 the following error:
 bash: make: command not found
 
 Thanks again,
 
 Shai
 
 
 On 4/27/09 1:48 PM, Chas. Owens chas.ow...@gmail.com wrote:
 
 tar xvfz local-lib-1.003003.tar.gz
 
 
 
 
 Hmm, you may need to install xcode[1].  It is basically Apple's
 version of gcc and associated utilities.  Luckily it is free.
 
 1. http://developer.apple.com/technology/xcode.html




Re: New to Mac - need help compiling a package

2009-04-27 Thread Shai Simchi
There u go:
http://pastebin.com/m330160a7




On 4/27/09 3:03 PM, Chas. Owens chas.ow...@gmail.com wrote:

 On Mon, Apr 27, 2009 at 17:27, Shai Simchi s...@mashery.com wrote:
 I get pretty much the same results after installing xcode. When I do the
 Makefile.PL --bootstrap
 
 But when I just type make this time I get:
 No targets specified and no makefile foundmake: *** .  Stop.
 snip
 
 Hmm, does the perl Makefile.PL --bootstrap step work?  Try typing
 
 * perl Makefile.PL --bootstrap 21 | pbcopy
 * go to http://pastebin.com/
 * hit command+v to paste the results into the textbox
 * hit send
 * copy the URL from the location bar and send it to the list