Install software from tar.gz

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Install software from tar.gz

Postby vist » 23 Oct 2011, 08:10

Dear colleagues, please tell me how to install software from tar.gz packages? I've tried to look at handbook, but I found nothing...
User avatar
vist
Junior Member
 
Posts: 51
Joined: 16 Sep 2011, 20:20

Postby johnd » 23 Oct 2011, 08:33

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 [FILE]/usr/ports[/FILE]? If you don´t know if it´s available try:
Code: Select all
whereis firefox
in case firefox is the software you want to install.

If you want to unpack your tar.gz-file use:
Code: Select all
tar -xf file.tar.gz
. Tar should detect the compression used automatically on newer Versions of FreeBSD. Consult [MAN=1]tar[/MAN] on your System.
johnd
Junior Member
 
Posts: 43
Joined: 06 Sep 2011, 11:24
Location: Germany

Postby vist » 23 Oct 2011, 08:38

It is not a problem to extract the package. I can't install it... I want to install the package from CD-ROM drive.
User avatar
vist
Junior Member
 
Posts: 51
Joined: 16 Sep 2011, 20:20

Postby shitson » 23 Oct 2011, 08:50

Have you mounted the CD-ROM?

Code: Select all
su -


Code: Select all
mount /cdrom
"Virtually everything worth doing has a learning curve associated with it", anomie.
User avatar
shitson
Member
 
Posts: 181
Joined: 17 Aug 2010, 02:51
Location: Australia, Wollongong

Postby johnd » 23 Oct 2011, 08:52

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?
johnd
Junior Member
 
Posts: 43
Joined: 06 Sep 2011, 11:24
Location: Germany

Postby vist » 23 Oct 2011, 09:33

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: Select all
cd /folder/package_folder
make install


"don't know how to make package"

If I try

Code: Select all
pkg_add /cdrom/package.tar.gz


it tells me "unable to extract table of contents file"...
User avatar
vist
Junior Member
 
Posts: 51
Joined: 16 Sep 2011, 20:20

Postby johnd » 23 Oct 2011, 09:45

Hmm, I don´t use FreeBSD as a guest under VMWARE. But I found this: http://www.vmware.com/support/ws5/doc/ws_newguest_tools_freebsd.html
johnd
Junior Member
 
Posts: 43
Joined: 06 Sep 2011, 11:24
Location: Germany

Postby Bunyan » 23 Oct 2011, 10:02

vist wrote:If I try

Code: Select all
pkg_add /cdrom/package.tar.gz


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


It will always say that, because [FILE]pkg_add[/FILE] operates with *.tbz files only.
User avatar
Bunyan
Member
 
Posts: 143
Joined: 23 Jan 2009, 20:51

Postby vist » 23 Oct 2011, 10:19

Bunyan wrote:It will always say that, because [FILE]pkg_add[/FILE] operates with *.tbz files only.


Ok, clear. So, how should I install tar.gz?
User avatar
vist
Junior Member
 
Posts: 51
Joined: 16 Sep 2011, 20:20

Postby wblock@ » 23 Oct 2011, 14:26

[file]tar.gz[/file] is just a compressed archive file, it could contain anything. How to install the contents will depend on what those contents are.

Ports like [port]emulators/open-vm-tools[/port] might be a better alternative.
User avatar
wblock@
Old Fart
 
Posts: 10226
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby Bunyan » 24 Oct 2011, 17:59

vist wrote:please tell me how to install software from tar.gz packages?

1) Unpack the archive.
2) Enter the DIR
3) [FILE]less README[/FILE]
4) [FILE]./configure --help[/FILE]
5) [FILE]./configure[/FILE]
6) [FILE]make[/FILE] ([FILE]gmake[/FILE])
7) [FILE]sudo make[/FILE] ([FILE]gmake[/FILE]) [FILE]install[/FILE]
User avatar
Bunyan
Member
 
Posts: 143
Joined: 23 Jan 2009, 20:51

Postby silverglade00 » 25 Oct 2011, 14:58

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

[CMD="#"]cd /usr/ports/misc/compat6x[/CMD]
[CMD="#"]make install clean[/CMD]

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

Mount the cdrom
[CMD="#"]mount /cdrom[/CMD]

Mount the tools file from cdrom
[CMD="#"]cp /cdrom/vmware-freebsd-tools.tar.gz /root
[/CMD]
uncompress them
[CMD="#"]gzip -d vmware-freebsd-tools.tar.gz[/CMD]
untar them
[CMD="#"]tar -xvf vmware-freebsd-tools.tar
[/CMD]
move into the directory
[CMD="#"]cd vmware-tools-distrib
[/CMD]
execute the install script
[CMD="#"]./vmware-install.pl
[/CMD]
answer a bunch of questions. The defualts setting are fine.

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

to the [FILE]/etc/rc.conf[/FILE] file and start the network with:
[CMD="#"]/etc/netstart[/CMD]
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.
silverglade00
Junior Member
 
Posts: 42
Joined: 07 Jan 2010, 19:33
Location: Little Rock, AR


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: masayoshi and 1 guest