1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install software from tar.gz

Discussion in 'Installation and Maintenance of Ports or Packages' started by vist, Oct 23, 2011.

  1. vist

    vist New Member

    Messages:
    52
    Thanks Received:
    0
    Dear colleagues, please tell me how to install software from tar.gz packages? I've tried to look at handbook, but I found nothing...
     
  2. johnd

    johnd New Member

    Messages:
    43
    Thanks Received:
    13
    Try looking at the documentation of the software you want to install. What software are you talking about? Isn´t it available from the ports tree under /usr/ports? If you don´t know if it´s available try:
    Code:
    whereis firefox
    in case firefox is the software you want to install.

    If you want to unpack your tar.gz-file use:
    Code:
    tar -xf file.tar.gz
    . Tar should detect the compression used automatically on newer Versions of FreeBSD. Consult tar(1) on your System.
     
  3. vist

    vist New Member

    Messages:
    52
    Thanks Received:
    0
    It is not a problem to extract the package. I can't install it... I want to install the package from CD-ROM drive.
     
  4. shitson

    shitson New Member

    Messages:
    181
    Thanks Received:
    32
    Have you mounted the CD-ROM?

    Code:
    su -


    Code:
    mount /cdrom
     
  5. johnd

    johnd New Member

    Messages:
    43
    Thanks Received:
    13
    A little bit information would be very helpful. What are you trying to install and what have you done so far? Have you tried the whereis command? Last time i have installed software from CD-ROM was in 2006 ;)
    Did you mount the CD?
     
  6. vist

    vist New Member

    Messages:
    52
    Thanks Received:
    0
    KDE mounted the CD-ROM automatically. I am running FreeBSD under VMWARE Workstation 7.1. To run video driver correctly I must install VMWARE tools package, that is mounted to the virtual machine as CD-ROM. The CD contains tar.gz package. I can access it. I tried to extract the package with console tar and graphical tar, but it does now want to compile.

    Code:
    cd /folder/package_folder
    make install
    


    "don't know how to make package"

    If I try

    Code:
    pkg_add /cdrom/package.tar.gz 


    it tells me "unable to extract table of contents file"...
     
  7. johnd

    johnd New Member

    Messages:
    43
    Thanks Received:
    13
  8. Bunyan

    Bunyan New Member

    Messages:
    143
    Thanks Received:
    15
    It will always say that, because pkg_add operates with *.tbz files only.
     
  9. vist

    vist New Member

    Messages:
    52
    Thanks Received:
    0
    Ok, clear. So, how should I install tar.gz?
     
  10. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,512
    Thanks Received:
    2,213
    tar.gz is just a compressed archive file, it could contain anything. How to install the contents will depend on what those contents are.

    Ports like emulators/open-vm-tools might be a better alternative.
     
  11. Bunyan

    Bunyan New Member

    Messages:
    143
    Thanks Received:
    15
    1) Unpack the archive.
    2) Enter the DIR
    3) less README
    4) ./configure --help
    5) ./configure
    6) make (gmake)
    7) sudo make (gmake) install
     
  12. silverglade00

    silverglade00 New Member

    Messages:
    42
    Thanks Received:
    5
    This is how we do vmware-tools at my job.

    An installed version of Perl is needed.
    The compatibility layer for BSD version 6.x is needed

    # cd /usr/ports/misc/compat6x
    # make install clean

    Present the guest OS using vSphere -> Guest -> Install/Upgrade VMware Tools
    The presents a virtual cdrom to the guest OS.

    Mount the cdrom
    # mount /cdrom

    Mount the tools file from cdrom
    # cp /cdrom/vmware-freebsd-tools.tar.gz /root

    uncompress them
    # gzip -d vmware-freebsd-tools.tar.gz
    untar them
    # tar -xvf vmware-freebsd-tools.tar

    move into the directory
    # cd vmware-tools-distrib

    execute the install script
    # ./vmware-install.pl

    answer a bunch of questions. The defualts setting are fine.

    Please remember to configure your network by adding:
    Code:
    ifconfig_vxn0="dhcp"

    to the /etc/rc.conf file and start the network with:
    # /etc/netstart
    to use the vmxnet interface using DHCP.

    The new virtual interface is hidden from the OS. The VMware host can now talk to the guest OS via the vxn0 interface.
     
    wblock@ thanks for this.