You are not logged in.

#1 2013-09-10 09:13:25

Gianlucode
Member
Registered: 2013-05-24
Posts: 25

Install Get

Hi guys, i need to install the program "get"... do you know in which package is?

If i try "man get" i can find the manual, but there isn't the program.

Offline

#2 2013-09-10 09:15:04

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Offline

#3 2013-09-10 09:30:36

Gianlucode
Member
Registered: 2013-05-24
Posts: 25

Re: Install Get

Tnx you very much, really useful!
But unfortunately running

[user@host ~]$ pkgfile get
community/mc
community/pork

mc
pork

They contains a file named "get" but not "get" the command i'm searching for :(

Offline

#4 2013-09-10 09:34:27

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Re: Install Get

You'll need to be more specific with which program you are trying to locate and its intended use.  If the error is a "generic get" failure then that may be referring to GNU Wget:

http://www.gnu.org/software/wget/

Or other than that it might be a specialized component of another package.  No one can help you without further information from yourself.

Offline

#5 2013-09-10 09:35:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Install Get

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-09-10 09:42:24

Gianlucode
Member
Registered: 2013-05-24
Posts: 25

Re: Install Get

headkase wrote:

You'll need to be more specific with which program you are trying to locate and its intended use.  If the error is a "generic get" failure then that may be referring to GNU Wget:

http://www.gnu.org/software/wget/

Or other than that it might be a specialized component of another package.  No one can help you without further information from yourself.

Sorry, i have to run a script where there is

#
# get external and cached IP addresses
#


$extip = get("http://api.externalip.net/ip/"); # Fetch current IP from whatismyip
die "Failed to get IP" unless $extip; # If IP wasn't acquired, go poof

the script fails on the row where is get, so i tried to execute get("http://api.externalip.net/ip/") on my console.... and the result is

[user@host ~]$ get("http://api.externalip.net/ip/")
bash: syntax error near unexpected token `"http://api.externalip.net/ip/"'

but if i try

[user@host ~]$ get
bash: get: command not found

Offline

#7 2013-09-10 09:46:23

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Install Get

Looks like a function call to me.
Either the script is incomplete, or it or the environment sources a library of script functions that you're missing?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#8 2013-09-10 09:47:50

Active Build
Member
Registered: 2013-09-04
Posts: 12

Re: Install Get

Most probably you are missing some Perl libraries, specifically LWP::Simple.


[ github ]

Offline

#9 2013-09-10 09:48:28

Gianlucode
Member
Registered: 2013-05-24
Posts: 25

Re: Install Get

skanky wrote:

Looks like a function call to me.
Either the script is incomplete, or it or the environment sources a library of script functions that you're missing?

The script is a perl script, maybe i've missed a library??

Offline

#10 2013-09-10 09:49:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Install Get

Ask whoever wrote the script.

Or just use curl instead.

Offline

#11 2013-09-10 09:49:55

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Install Get

Perl, of course. I thought I didn't recognise "unless". smile

Active Build's probably got it.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#12 2013-09-10 09:52:04

Gianlucode
Member
Registered: 2013-05-24
Posts: 25

Re: Install Get

Active Build wrote:

Most probably you are missing some Perl libraries, specifically LWP::Simple.

LWP::Simple is in https://www.archlinux.org/packages/extr … www/files/ but is already installed in my box...

Offline

#13 2013-09-10 10:49:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Install Get

Those are perl commands, but you don't invoke a perl interpreter.  The error is clear - it says it is a bash syntax error - you are using a bash interpreter.

That can't be the full script, right - there is no shebang defining the interpreter, so how do you execute it at all?  Either you specific the interpreter when you call it and you are specifying the wrong one, or it fails to execute because you can't execute a shebang-less text file.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2013-09-10 10:51:36

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Install Get

You should probably post the whole script, but IIRC it will need

use LWP::Simple;

to er, use it.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#15 2013-09-10 10:54:58

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Re: Install Get

The very first line of the file must be a she-bang that points at your PERL interpreter:

http://en.wikipedia.org/wiki/Shebang_(Unix)

As Trilby stated.  Then as skanky stated you'll, now in PERL, probably need a use statement to get the get statement in your script.

Offline

Board footer

Powered by FluxBB