pkg_add (Full Version)

All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum



Message


mhovers -> pkg_add (Sep. 27, '06, 5:58:13 PM)

I am trying to install ddd using pkg_add.

When I do pkg_add ftp://ftp.interopsystems.com/pkgs/3.5/ddd-current-bin.tgz

I get:
gzip: stdin: unexpected end of file
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
pkg_add(ddd-current-bin): URL `ftp://ftp.interopsystems.com/pkgs/3.5/ddd-current-bin.tgz' has unknown hostname part!
pkg_add(ddd-current-bin): unable to fetch `ftp://ftp.interopsystems.com/pkgs/3.5/ddd-current-bin.tgz' by URL
$ exit

So I downloaded ddd-current-bin.tgz

and tried it from the local directory and get:

pkg_add ./ddd-current-bin.tgz

gzip: stdin: unexpected end of file
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
pkg_add(libxpm-3.4k.3-bin): URL `ftp://ftp.interopsystems.com/pkgs/3.5/libxpm-3.4k.3-bin.tgz' has unknown hostname part!
pkg_add(libxpm-3.4k.3-bin): unable to fetch `ftp://ftp.interopsystems.com/pkgs/3.5/libxpm-3.4k.3-bin.tgz' by URL
pkg_add(ddd-current-bin): autoload of dependency `ftp://ftp.interopsystems.com/pkgs/3.5/libxpm-3.4k.3-bin.tgz' failed!

What am I doing wrong?

thanks,
Mike




Rodney -> RE: pkg_add (Sep. 27, '06, 10:10:21 PM)

> has unknown hostname part!

That's the big clue there.
Try doing an ftp to ftp.interopsytems.com from a shell directly.
Check your /etc/resolv.conf has nameserver point to a DNS IP correctly.




mhovers -> RE: pkg_add (Sep. 28, '06, 12:19:11 PM)

I can not ftp to interop, I believe our corporate firewall prevents it. That is why I tried to do the pkg_add with the downloaded package, but that did not work either.

thanks,
Mike




mhovers -> RE: pkg_add (Sep. 28, '06, 12:48:33 PM)

In reading the man pages for pkg_update it would seem that I should be able to load a package that is on my local machine (such as openssl). There is the following:
ENVIRONMENT
PKG_LOCATION
If a location for a package has not be specified explicitly
in the package name or with the -l option then the location
given in PKG_LOCATION is used to find the package. The loca-
tion may be either a local pathname which includes the /net
filesystem, or an FTP URL. The default when no setting is
specified is the FTP URL of:
ftp://ftp.interopsystems.com/pkgs/{VERSION}-{HARDWARE}
Where {VERSION} is the version of Interix and {HARDWARE} is
type of CPU hardware for the machine (both as reported by
'uname').

My file system path where the openssl-current-bin.tgz file is located looks like /dev/fs/P/software/sfu. Where would the /net mentioned above come in??

thanks,
Mike




Rodney -> RE: pkg_add (Sep. 29, '06, 1:47:03 PM)

The "/net" is mentioned just so people understand that it's not restricted to local filesystems.
You can have the packages stored on a network filesystem too.
If you are placing everything in one directory that is good.

The other thing is if you have an ftp or http proxy you can get this for ftp
to use to go by the firewall. Refer to "ftp_proxy" in the ftp man page.




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031