02-06-2014
You cannot "update" when compiling by hand... You are ripping the floor out from underneath your package manager and trashing your existing applications. You want to install a separate version somewhere else instead.
That's why /usr/local exists, why it's the default for hand compilation.
So, you need to:
1) Uninstall all the packages you hand-installed into /usr/.
2) Reinstall the "old" versions to repair any files overwritten or deleted by your hand-installations.
3) Compile and install your packages into /usr/local/, i.e. leaving PREFIX at default.
Whenever a package complains about the version of something being too old, look carefully at its ./configure --help options and direct it to /usr/local/include or /usr/local/lib to use your custom-compiled versions.
This way, the new and old versions can co-exist.
Last edited by Corona688; 02-06-2014 at 04:11 PM..
10 More Discussions You Might Find Interesting
1. Programming
(Installing GCC: Configuration)
In the document of Installing GCC, there is a sentence I don't
understand:
" Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts... (2 Replies)
Discussion started by: wwz
2 Replies
2. UNIX for Dummies Questions & Answers
Hi! I have downloaded a precompiled gcc package but I'm having problems installing it. It is supposed to install in /usr/local and there is plenty of space left there but during the installation I get the following error message “No space left on device”. Is it some kind of temp folder that is out... (2 Replies)
Discussion started by: alfabetman
2 Replies
3. Programming
I am trying to install gcc-3.1 in an SGI Indigo2 running Irix 6.5.15.
When I try to configure gcc-3.1 I keep getting the following message:
Created "Makefile in gcc/ using "mh-frag"
cc ERROR: cannot exec /usr/lib32/cmplrs/fec
*** The command 'cc -o conftest -g conftest.c' failed
*** You... (0 Replies)
Discussion started by: mdbanas
0 Replies
4. Programming
Hi all
I'm trying to install the latest version of gcc but I keep getting this message on make;
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I./../zlib -I./../include -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -c jartool.c
jartool.c:234: getopt.h: No... (3 Replies)
Discussion started by: squeakywheel
3 Replies
5. Solaris
Hi friends,
i down loaded the gcc*.gz file and i am getting the following error when i am trying to install it on solaris 8
=======================================================
Processing package instance <SMCgcc342> from </export/gcc-3.4.2-sol8-sparc-local>
gcc
(sparc) 3.4.2
FSF... (1 Reply)
Discussion started by: sveera
1 Replies
6. Solaris
Folks -
This may sound like a newbee question - and it is. But a project that I'm managing is under a time crunch and I need a quick answer.
IS it possible to install gcc 2.8.1 on a Solaris 10 Sun box? We have some old libraries that need that version of the compiler in order to work... (2 Replies)
Discussion started by: peridot
2 Replies
7. Solaris
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders ŕ /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) ŕ pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies
8. UNIX for Advanced & Expert Users
I have a platform whose base is Linux but not everything is available on that. Only necessary executables are available and any individual executable can run on that. It is 32-bit and uname -a shows Linux 2.6.11.11.
Problem is I am trying to install gcc compiler on that to debug an issue. Even... (1 Reply)
Discussion started by: radiatejava
1 Replies
9. Solaris
Hi,
I am trying to install gcc on SPARC 5.9
pkgadd -d gcc-3.4.2-sol9-sparc-local
i get the below error
pkgadd: ERROR: attempt to process datastream failed
- open of <gcc-3.4.2-sol9-sparc-local> failed, errno=2
pkgadd: ERROR: could not process datastream from... (3 Replies)
Discussion started by: saharookiedba
3 Replies
10. Solaris
dear, please just didn't understand the problem that appears when i try to install ./configure here is the message that appears in unix when installing gcc
root@ccbtest # ./configure
checking build system type... /bin/bash: ./config.guess: No such file or directory
configure: error: cannot... (3 Replies)
Discussion started by: semaan
3 Replies
LEARN ABOUT DEBIAN
dpkg-divert
dpkg-divert(8) dpkg utilities dpkg-divert(8)
NAME
dpkg-divert - override a package's version of a file
SYNOPSIS
dpkg-divert [option...] command
DESCRIPTION
dpkg-divert is the utility used to set up and update the list of diversions.
File diversions are a way of forcing dpkg(1) not to install a file into its location, but to a diverted location. Diversions can be used
through the Debian package scripts to move a file away when it causes a conflict. System administrators can also use it to override some
package's configuration file, or whenever some files (which aren't marked as 'conffiles') need to be preserved by dpkg, when installing a
newer version of a package which contains those files.
COMMANDS
[--add] file
Add a diversion for file.
--remove file
Remove a diversion for file.
--list glob-pattern
List diversions matching glob-pattern.
--listpackage file
Print the name of the package that diverts file. Prints LOCAL if file is locally diverted and nothing if file is not diverted.
--truename file
Print the real name for a diverted file.
OPTIONS
--admindir directory
Set the dpkg data directory to directory (default: /var/lib/dpkg).
--divert divert-to
divert-to is the location where the versions of file, as provided by other packages, will be diverted.
--local
Specifies that all packages' versions of this file are diverted. This means, that there are no exceptions, and whatever package is
installed, the file is diverted. This can be used by an admin to install a locally modified version.
--package package
package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except pack-
age.
--quiet
Quiet mode, i.e. no verbose output.
--rename
Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists.
--test Test mode, i.e. don't actually perform any changes, just demonstrate.
-?, --help
Show the usage message and exit.
--version
Show the version and exit.
NOTES
When adding, default is --local and --divert original.distrib. When removing, --package or --local and --divert must match if specified.
Directories can't be diverted with dpkg-divert.
Care should be taken when diverting shared libraries, ldconfig(8) creates a symbolic link based on the DT_SONAME field embedded in the
library. Because ldconfig doesn't honour diverts (only dpkg does), the symlink may end up pointing at the diverted library, if a diverted
library has the same SONAME as the undiverted one.
EXAMPLES
To divert all copies of a /usr/bin/example to /usr/bin/example.foo, i.e. directs all packages providing /usr/bin/example to install it as
/usr/bin/example.foo, performing the rename if required:
dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example
To remove that diversion:
dpkg-divert --rename --remove /usr/bin/example
To divert any package trying to install /usr/bin/example to /usr/bin/example.foo, except your own wibble package:
dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /usr/bin/example
To remove that diversion:
dpkg-divert --package wibble --rename --remove /usr/bin/example
ENVIRONMENT
DPKG_ADMINDIR
If set and the --admindir option has not been specified, it will be used as the dpkg data directory.
DPKG_MAINTSCRIPT_PACKAGE
If set and the --local and --package options have not been specified, dpkg-divert will use it as the package name.
FILES
/var/lib/dpkg/diversions
File which contains the current list of diversions of the system. It is located in the dpkg administration directory, along with
other files important to dpkg, such as status or available.
Note: dpkg-divert preserves the old copy of this file, with extension -old, before replacing it with the new one.
SEE ALSO
dpkg(1).
Debian Project 2011-08-14 dpkg-divert(8)