Typically (ie you can do what you like within reason but most people follow this guideline):
/usr/bin is where the OS has it's executable code, it's also where software that is installed via the OS's package management system (eg .dmg files on Mac).
/usr/local/bin is where custom executable code goes, things that aren't managed by any sort of version control in the OS or packages (eg download thing, compile thing, run "make install")
You can fulfil dependancies by either getting the right precompiled package, or by compiling yourself (make). You can mix and match, but typically I prefer to use only one method to supply dependancies (especially so if they are only going to be used by that one tool I'm trying to get going) A good rule of thumb is to try really hard to find a 'proper' package for the thing you want, then revert to compiling if you really have to (or if you really need a special version of it or compile option)
When you run a "make install" it will follow whatever instructions are in the makefile. Usually, when you run ./configure, it'll set up a few variables automatically to sensible defaults, including the install path.
If you want to copy files into protected arts of the OS (/usr/bin and /usr/local/bin for example), you need root privs, sudo grants these to the command you specify immediately after the word "sudo" (eg sudo echo "I am root for this command only")
Hitting tab should expand all available commands, but that's probably not what you really want to do. Use ls on the install dir to look for it:
or
Generally speaking, you compile things for the local environment. You can cross-compile but it's a bit fiddly to explain in a forum post.
I have installed the locale package for en_GB and if i do a locale -a (after reboot) it will display:
en_GB
en_GB.ISO8859-1
en_GB.ISO8859-15
en_GB.ISO8859-15@euro
(short version)
and i get this when typing only 'locale':
# locale
LANG=en_GB
LC_CTYPE="C"
LC_NUMERIC=C
LC_TIME="C"... (2 Replies)
hi Guys,
relatively new to Unix. i have a list of Unix packages to install... how do i install only what is on that list? can someone help?
Kind regards
Brian (1 Reply)
Hi!
Let me introduce a project for find and download Slackware packages and browse Slackware repositories.
The site provides following features:
* Large, daily updated database with RPM, DEB, TGZ, TXZ packages for well-known repositories of the Slackware, Fedora, CentOS, RHEL, Debian,... (2 Replies)
Hi there
I'm having trouble with a remote Red Hat server. We are busy with an Oracle 11g installation on this box and going through the list of required packages, etc.
The installation required elfutils-libelf-devel-0.148. When I try to install that I get the following error;
rpm -i... (6 Replies)
Hi, I have mounted the Ubuntu server edition 10.10 ISO on my server under a directory media/servercd. I would like to install some services from this. I edited the sources.list file to say:
deb file:/media/servercd maverick main restricted
and it's properly mounted but when I try... (1 Reply)
Hi guys, I am trying to install some packages for my oracle 11g r2 installation, the below error shows up when I try below:
warning: glibc-devel-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
glibc-headers is needed by... (8 Replies)
hello everyone
i have to start with unix as it is a part of my training programme and i have to do a self study, i dont know where to start from. i need some basic questions to be answerd like why we use unix ? what is a terminal? what is an editor? why we write commands inside terminal?
these... (4 Replies)
I want to install EMCpower (EMC Powerpath package) in Solaris 11. At most of the places, I can see procedure to install packages which comes with repository.
This is third party tool, I have downloaded it to /var/tmp. How should I install it ?
root@orapdps11 # pkg publisher
PUBLISHER ... (4 Replies)
hi,
I wants to customize the Linux packages after installting the Linux OS...
I am not able to install the packages packages in GUI mode System-> Administration->add/remove software.i want to install some desktop and dabase related packages how do i install those packages...
I use RHEL6.2... (1 Reply)
Discussion started by: Rahulne25
1 Replies
LEARN ABOUT PHP
gzexe
GZEXE(1) General Commands Manual GZEXE(1)NAME
gzexe - compress executable files in place
SYNOPSIS
gzexe name ...
DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files:
-rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb
-rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~
/usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are
sure that /usr/bin/gdb works properly.
This utility is most useful on systems with very small disks.
OPTIONS -d Decompress the given executables instead of compressing them.
SEE ALSO gzip(1), znew(1), zmore(1), zcmp(1), zforce(1)CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail).
BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.
GZEXE(1)