The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 pkg_add =[
Author: Fallen 
Date:   06-11-02 01:05

Hello,

I`m having problems with pkg_add...

I can`t install anything with pkg_add, I`ve tried several packages, including AbiWord...

Here is a sample error message:

pkg_add dhcpcd-1.3.22-pl3.tar.gz
tar: +CONTENTS not found in archive
pkg_add: unable to open table of contents file `+CONTENTS' - not a package?

Does anyone knows what to do?

Thanks,

Fallen

Reply To This Message
 
 Re: pkg_add =[
Author: Dan Langille 
Date:   06-11-02 02:56

Sounds like that tarball is incomplete. Where did you get it from? What version of FreeBSD are you running?

For what it's worth, I just did this on 4.6-STABLE:

[dan@gus:~] $ sudo pkg_add -r BitchX
Password:
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/BitchX.tgz... Done.
[dan@gus:~] $ pkg_info | grep BitchX
BitchX-1.0c19_1 An alternative ircII color client with optional GTK/GNOME s
[dan@gus:~] $ sudo pkg_delete BitchX-1.0c19_1
pkg_delete: file `/usr/local/share/bx/plugins' doesn't really exist
pkg_delete: unable to completely remove directory '/usr/local/share/bx/plugins'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

[ ignore those errors, not really relevant to the problem ]


[dan@gus:~] $ fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/BitchX.tgz
Receiving BitchX.tgz (921216 bytes): 100%
921216 bytes transferred in 10.9 seconds (82.90 kBps)


[dan@gus:~] $ sudo pkg_add ./BitchX.tgz
[dan@gus:~] $ pkg_info | grep BitchX
BitchX-1.0c19_1 An alternative ircII color client with optional GTK/GNOME s
[dan@gus:~] $

Reply To This Message
 
 Re: pkg_add =[
Author: .daniel.schrock 
Date:   06-11-02 03:22

also... packages are normally signified by .tgz extension, not .tar.gz. It looks like you may have grabbed the wrong file, maybe the dhcpd source code? Packages are precompiled binaries only available from freebsd.org, not the application's websites.

how did you get the .tar.gz?

Reply To This Message
 
 Re: pkg_add =[
Author: Fallen 
Date:   06-11-02 19:27

Hi,

I`ve downloaded it from PhysTech..

Here is the URL: http://www.phystech.com/download/

Also, I am running FreeBSD v4.6.2

Thanks

Reply To This Message
 
 Re: pkg_add =[
Author: Dan Langille 
Date:   06-11-02 19:59

Here is the problem:

DHCP Client Daemon for Linux 2.0-2.5. See ChangeLog
http:dhcpcd-1.3.22-pl3.tar.gz ftp:dhcpcd-1.3.22-pl3.tar.gz

You can't use that. It's not a FreeBSD package.

Please read http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

Reply To This Message
 
 Re: pkg_add =[
Author: Fallen 
Date:   27-11-02 13:22

Hi,

I've downloaded Abiword package for FreeBSD [(abisuite-1.0.3-FreeBSD_i386_gtk.tar.gz) at (http://www.abisource.com/download/index.phtml?all=1)] and I get the same "tar: +CONTENTS not found in archive" error. What could be wrong?

Reply To This Message
 
 Re: pkg_add =[
Author: Dan Langille 
Date:   27-11-02 15:37

As I said in my previous post:

You can't use that. It's not a FreeBSD package.

Please read http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

Reply To This Message
 
 Re: pkg_add =[
Author: Fallen 
Date:   27-11-02 16:04

I don't understand. It clearly says that it is a FreeBSD Package. Look:

FreeBSD Downloads
FreeBSD Packages
Tarball - GTK+ Version (Intel) - 6.2 MB. Please select a mirror:
[VA, USA] - [NC, USA] - [MN, USA] - [WI, USA] - [AZ, USA] - [Belgium] - [Czech Rep.] - [Switzerland]
Tarball - Gnome Version (Intel) - 6.3 MB. Please select a mirror:
[VA, USA] - [NC, USA] - [MN, USA] - [WI, USA] - [AZ, USA] - [Belgium] - [Czech Rep.] - [Switzerland]

Reply To This Message
 
 Re: pkg_add =[
Author: Dan Langille 
Date:   28-11-02 05:52

Fallen wrote:
>
> I don't understand. It clearly says that it is a FreeBSD
> Package. Look:
>
> FreeBSD Downloads
> FreeBSD Packages
> Tarball - GTK+ Version (Intel) - 6.2 MB. Please select a
> mirror:
> [VA, USA] - [NC, USA] - [MN, USA] - [WI, USA] - [AZ, USA] -
> [Belgium] - [Czech Rep.] - [Switzerland]
> Tarball - Gnome Version (Intel) - 6.3 MB. Please select a
> mirror:
> [VA, USA] - [NC, USA] - [MN, USA] - [WI, USA] - [AZ, USA] -
> [Belgium] - [Czech Rep.] - [Switzerland]

It says packages, but it it not a package which can be used with pkg_add. Compare:

[dan@xeon:~/tmp] $ fetch http://telia.dl.sourceforge.net/sourceforge/abiword/abisuite-1.0.3-FreeBSD_i386_gtk.tar.gz
Receiving abisuite-1.0.3-FreeBSD_i386_gtk.tar.gz (6187482 bytes): 100%
6187482 bytes transferred in 54.0 seconds (112.00 kBps)
[dan@xeon:~/tmp] $ file abisuite-1.0.3-FreeBSD_i386_gtk.tar.gz
abisuite-1.0.3-FreeBSD_i386_gtk.tar.gz: gzip compressed data, deflated, last modified: Fri Sep 13 02:26:41 2002, os: Unix
[dan@xeon:~/tmp] $ gunzip abisuite-1.0.3-FreeBSD_i386_gtk.tar.gz
[dan@xeon:~/tmp] $ tar xvf abisuite-1.0.3-FreeBSD_i386_gtk.tar
abisuite-1.0.3-FreeBSD_i386_dynamic/
abisuite-1.0.3-FreeBSD_i386_dynamic/install.sh
abisuite-1.0.3-FreeBSD_i386_dynamic/data.tar
[dan@xeon:~/tmp] $ cd abisuite-1.0.3-FreeBSD_i386_dynamic
[dan@xeon:~/tmp/abisuite-1.0.3-FreeBSD_i386_dynamic] $ ls -l
total 13418
-rw-r--r-- 1 dan dan 13721600 Sep 13 02:26 data.tar
-rwxr-xr-x 1 dan dan 9561 Sep 13 02:26 install.sh
[dan@xeon:~/tmp/abisuite-1.0.3-FreeBSD_i386_dynamic] $ less install.sh
#!/bin/sh
#
# AbiSource Unix Installer Program
# Copyright (C) 1999-2000 AbiSource, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

INSTALL_DATA_FILE=`pwd`/data.tar
DEFAULT_PREFIX=/usr/local
DEFAULT_HOME=AbiSuite
DEFAULT_LINK_DIR=/usr/local/bin

# Test for SysV echo; NECHO is defined for "no newline" echos
if [ "`echo 'echo\c'`" = "echo\c" ]
then
NECHO="echo -n"
POSTNECHO=""
else
NECHO="echo"
POSTNECHO="\c"
fi
ECHO="echo"

# Program execution
cat <<EOF

AbiSuite Program Installer, Copyright (C) 1999 AbiSource, Inc.

This program comes with ABSOLUTELY NO WARRANTY; this software is
free software, and you are welcome to redistribute it under
certain conditions. Read the file called COPYING in the archive
in which this program arrived for more details.


And where is another package, a real FreeBSD package:

[dan@xeon:~/tmp/abisuite-1.0.3-FreeBSD_i386_dynamic] $ cd ..
[dan@xeon:~/tmp] $ fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/chinese/cn2jp-1.4b_2.tgz
Receiving cn2jp-1.4b_2.tgz (421566 bytes): 100%
421566 bytes transferred in 3.9 seconds (104.60 kBps)
[dan@xeon:~/tmp] $ tar xvfz cn2jp-1.4b_2.tgz
+CONTENTS
+COMMENT
+DESC
+MTREE_DIRS
bin/b2g
bin/b2j
bin/g2b
bin/g2j
bin/j2b
bin/j2g
include/jp-util.h
include/lang-util.h
lib/libcn2jp.a
lib/libcn2jp.so
lib/libcn2jp.so.1
share/cn2jp/README
[dan@xeon:~/tmp] $


Now can you see the difference?

My guess, and I stress guess, is that you must run install.sh from what you have downloaded.

Once again, go and read what I have suggested you read.

Reply To This Message
 
 Re: pkg_add =[
Author: Dan Langille 
Date:   28-11-02 14:46

Last night I emailed the webmaster of that site. Today the reply was:

According to Dan Langille <dan@langille.org>:
> Hi,
>
> I noticed that http://www.abisource.com/download/index.phtml?all=1
> refers to FreeBSD packages[1]. Anyone familiar with FreeBSD will
> assume what is being supplied are files compatiable with the FreeBSD
> pkg_add[2] command. After downloading and inspecting the file, I see
> this is not the case. I'm not sure what is in those files, but it is
> definitely not something for use with pkg_add.
>
> Is there any chance that another name could be used so as to avoid
> this situation?

I'll change that. This is confusing, you are right.

These are only binaries tarballs.


###

It's not changed yet, but let's give him some time.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org