How install uuid in centos5.8 - centos

I have tried some tutorials from internet, like yum install libuuid-devel, but not works.
sh-3.2# yum install libuuid-devel
Failed to set locale, defaulting to C
C5.8-base | 1.1 kB 00:00
C5.8-centosplus | 1.9 kB 00:00
Setting up Install Process
No package libuuid-devel available.
Nothing to do
Then i want to compile uuid from source code, but not found uuid source code location.

Related

CentOS 6.5 -- > latest 6.7 / 6.x gives Transaction Check Error noarch conflicts with file from package

I'm trying to update / upgrade CentOS 6.5 version to 6.7 or latest 6.x but getting the following error.
In the snapshot below, I'm showing truncated output and mainly showing the error log while running YUM update or upgrade command. For full log file, please see log .txt file here: YUM update or upgrade Transaction Check Error norach conflicts. PS: Under Limited Download, click on "Slow download" and open the log file in some notepad++ type text editor.
What should I do to sucessfully upgrade/update the CentOS version. Thanks.
[root#server01 giga]# yum clean all; echo $?
Loaded plugins: fastestmirror, refresh-packagekit
Cleaning repos: base epel extras google-chrome puppetlabs-deps puppetlabs-products release.update supplemental.release supplemental.release.update updates
Cleaning up Everything
Cleaning up list of fastest mirrors
0
[root#server01 giga]#
[root#server01 giga]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root#server01 giga]#
[root#server01 giga]#
[root#server01 giga]#
[root#server01 giga]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
epel/metalink | 12 kB 00:00
* base: ftp.usf.edu
* epel: mirror.cogentco.com
* extras: mirrors.advancedhosters.com
* updates: mirror.team-cymru.org
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:03
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 34 kB 00:00
google-chrome | 951 B 00:00
google-chrome/primary | 1.9 kB 00:00
google-chrome 3/3
puppetlabs-deps | 2.5 kB 00:00
puppetlabs-deps/primary_db | 27 kB 00:00
puppetlabs-products | 2.5 kB 00:00
puppetlabs-products/primary_db | 166 kB 00:00
release.update | 4.0 kB 00:00
release.update/primary_db | 4.4 MB 00:00
supplemental.release | 2.9 kB 00:00
supplemental.release/primary_db | 98 kB 00:00
supplemental.release.update | 2.9 kB 00:00
supplemental.release.update/primary_db | 2.0 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.9 MB 00:01
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package audit.x86_64 0:2.2-2.el6 will be updated
---> Package audit.x86_64 0:2.3.7-5.el6 will be an update
---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
---> Package audit-libs.x86_64 0:2.3.7-5.el6 will be an update
---> Package augeas-libs.x86_64 0:1.0.0-5.el6_5.1 will be updated
---> Package augeas-libs.x86_64 0:1.0.0-10.el6 will be an update
---> Package authconfig.x86_64 0:6.1.12-13.el6 will be updated
---> Package authconfig.x86_64 0:6.1.12-23.el6 will be an update
---> Package b43-openfwwf.noarch 0:5.2-4.el6 will be updated
---> Package b43-openfwwf.noarch 0:5.2-10.el6 will be an update
---> Package bash.x86_64 0:4.1.2-15.el6_4 will be updated
---> Package bash.x86_64 0:4.1.2-33.el6_7.1 will be an update
---> Package bfa-firmware.noarch 0:3.2.21.1-2.el6 will be updated
---> Package bfa-firmware.noarch 0:3.2.23.0-2.el6 will be an update
---> Package pciutils.x86_64 0:3.1.10-4.el6 will be installed
---> Package virt-what.x86_64 0:1.11-1.2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
Installing:
kernel x86_64 2.6.32-573.18.1.el6 updates 30 M
kernel-devel x86_64 2.6.32-573.18.1.el6 updates 10 M
Updating:
audit x86_64 2.3.7-5.el6 base 208 k
audit-libs x86_64 2.3.7-5.el6 base 71 k
augeas-libs x86_64 1.0.0-10.el6 base 314 k
authconfig x86_64 6.1.12-23.el6 base 377 k
b43-openfwwf noarch 5.2-10.el6 base 19 k
bash x86_64 4.1.2-33.el6_7.1 updates 908 k
bfa-firmware noarch 3.2.23.0-2.el6 base 3.2 M
(129/131): yum-3.2.29-69.el6.centos.noarch.rpm | 1.0 MB 00:02
(130/131): yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm | 31 kB 00:00
(131/131): yum-utils-1.1.30-30.el6.noarch.rpm | 110 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 146 MB 01:43
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/bin/extlookup2hiera from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/backend/puppet_backend.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/scope.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera_puppet.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_array.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_hash.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_include.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
Error Summary
-------------
[root#server01 giga]#
[root#server01 giga]# yum -y upgrade
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: ftp.usf.edu
* epel: mirror.cogentco.com
* extras: mirrors.advancedhosters.com
* updates: mirror.team-cymru.org
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package audit.x86_64 0:2.2-2.el6 will be updated
---> Package audit.x86_64 0:2.3.7-5.el6 will be an update
---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
virt-what x86_64 1.11-1.2.el6 base 24 k
Transaction Summary
==================================================================================================================================================================
Install 5 Package(s)
Upgrade 126 Package(s)
Total size: 146 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/bin/extlookup2hiera from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/backend/puppet_backend.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/scope.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera_puppet.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_array.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_hash.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_include.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
Error Summary
-------------
[root#server01 giga]#
Solution for upgrading CentOS 6.5 to 6.6/6.7 was to first: Found this cool site for the hint http://www.if-not-true-then-false.com/2011/upgrade-centos-6/ and tried the following.
I tried to first remove puppet and yum update, it still failed with the same error. The issue was with hiera-puppet. With latest puppet (3.x.x which is what you'll get if you update just puppet), hiera-puppet comes for free OR you can say it's not required to be installed as a separate step.
So, solution to upgrade from CentOS 6.5/6.6 to 6.7 (Final) was:
# yum -y remove puppet hiera-puppet
# yum -y clean all
# yum -y update glibc* yum* rpm* python*
# yum -y update
# cat /etc/redhat-release; ## This will now give: CentOS release 6.7 (Final)

Installing vnstat on CentOS 6 shows "No package vnstat available"

I'm trying to install vnstat on CentOS 6. I used the command found in the docs 'yum install vnstat' but it shows the below:
[root#m2 ~]# yum install vnstat
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirror.its.dal.ca
* extras: mirror.its.dal.ca
* updates: mirror.its.dal.ca
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 31 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.3 MB 00:03
No package vnstat available.
Error: Nothing to do
Does anyone know how to resolve the No package vnstat available issue?
vnstat is not available in base repository. You first need to enable EPEL (Extra Packages for Enterprise Linux) repository with:
yum install epel-release
After that, yum install vnstat should work.

Which missing library results in the message '/usr/bin/ld: cannot find -lglib-2.0'?

I am cross compiling a Lazarus program, creating a 32bit program on a 64bit Ubuntu 14.04 Trusty Tahr system, and everything apparently compiles to the very end when I get this messsage
/usr/bin/ld: cannot find -lglib-2.0
What is the full name of the library whose absence results in this error mesage?
libc6-dev:i386 appears to be the most likely library, but when I try to install it with apt indicates build-essential g++ gcc gcc-multilib will be removed so I abort it.
sudo apt-get install libc6-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-libc-dev linux-libc-dev:i386
Suggested packages:
glibc-doc:i386 manpages-dev:i386
Recommended packages:
gcc:i386 c-compiler:i386
The following packages will be REMOVED
build-essential g++ gcc gcc-multilib
The following NEW packages will be installed
libc6-dev:i386 linux-libc-dev:i386
The following packages will be upgraded:
linux-libc-dev
1 to upgrade, 2 to newly install, 4 to remove and 18 not to upgrade.
Need to get 3,126 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
It turns out it was the libglib2.0-0:i386 package. It was already installed earlier, but it had not been fully configured.
It was present in the /lib/i386-linux directory and I had to create a symlink to it include it to the fpc.cfg configuration file used by Free Pascal.
locate libglib | grep ^/lib produced:
/lib/i386-linux-gnu/libglib-2.0.so.0
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0
I symlinked it with the expected name:
ln -s /lib/i386-linux-gnu/libglib-2.0.so.0 /lib/i386-linux-gnu/libglib-2.0.so
then added to the Lazarus installations fpc.cfg file
#ifdef cpui386
-Fl/usr/lib32
-Fl/lib/i386-linux-gnu
#endif

SBT install failure with aptitude on Ubuntu 14.04

I receive several errors when I attempt to install sbt on Ubuntu via aptitude with the instructions from the scala-sbt homepage:
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-get update
sudo apt-get install sbt
http://www.scala-sbt.org/0.13/tutorial/Installing-sbt-on-Linux.html
First I get a package validation error and then a segmentation fault.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sbt
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 1,041 kB of archives.
After this operation, 1,224 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
sbt
Install these packages without verification? [y/N] y
E: Method https has died unexpectedly!
E: Sub-process https received a segmentation fault.
EDIT:
I can browse the mirror fine without any cert errors.
Confirming which mirror it's using with apt-cache.
$ sudo apt-cache policy sbt
sbt:
Installed: (none)
Candidate: 0.13.7
Version table:
0.13.7 0
500 https://dl.bintray.com/sbt/debian/ Packages
0.13.6 0
500 https://dl.bintray.com/sbt/debian/ Packages
0.13.5 0
500 https://dl.bintray.com/sbt/debian/ Packages
0.13.2 0
500 https://dl.bintray.com/sbt/debian/ Packages
0.13.1-0.1-build-001 0
500 https://dl.bintray.com/sbt/debian/ Packages
0.13.0-0.1-build-001 0
500 https://dl.bintray.com/sbt/debian/ Packages
0.12.4-0.1-build-001 0
500 https://dl.bintray.com/sbt/debian/ Packages
EDIT 2: I ended up just downloading the package manually and installing it with dpkg.
There are related answers which lead me to this solution:
wget https://dl.bintray.com/sbt/debian/sbt-0.13.7.deb
sudo dpkg -i sbt-0.13.7.deb
P.S. I think that officially documented way does not work because they didn't provide the public key used by apt to authenticate packages.
P.P.S. After some research I've found that this issue is more related to the apt package, there are many reports about this error at bugs.launchpad.net. So, while it's still an issue that sbt didn't provide public key, but it shouldn't cause this error. I hope canonical will resolve this soon.
Related:
Install sbt on ubuntu [closed]
Install Java Scala and SBT on Debian (useless pain in the ass)
Manual install is also available:
http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html
Also, as a temporary workaround, you could use HTTP repository address instead of HTTPS.
Just open file /etc/apt/sources.list.d/sbt.list and replace
deb https://dl.bintray.com/sbt/debian /
with
deb http://dl.bintray.com/sbt/debian /

problem installing memcached on centos 5.4 64 bit

I'm trying to install memcached on Centos 5.4 with:
# yum install memcached
What I get is:
[root#domU-12-31-39-02-75-A8 ~]# yum -y install memcached
Failed to set locale, defaulting to C
rightscale-epel | 951 B 00:00
rpmforge | 1.1 kB 00:00
rpmforge/primary | 3.9 MB 00:01
rpmforge 10767/10767
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.5-1.el5 set to be updated
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: memcached
--> Finished Dependency Resolution
memcached-1.4.5-1.el5.x86_64 from epel has depsolving problems
--> Missing Dependency: libevent-1.4.so.2()(64bit) is needed by package memcached-1.4.5-1.el5.x86_64 (epel)
Error: Missing Dependency: libevent-1.4.so.2()(64bit) is needed by package memcached-1.4.5-1.el5.x86_64 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
How can I install memcached?
Thanks, Alex A.
You need to install it manually or change your yum repo:
wget ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/testing/RPMS/libevent-1.3b-1.el5.test.x86_64.rpm
wget http://pkgs.repoforge.org/memcached/memcached-1.2.6-1.el3.rf.x86_64.rpm
rpm -ivh libevent-1.3b-1.el5.test.x86_64.rpm
rpm -ivh memcached-1.2.6-1.el3.rf.x86_64.rpm
Note, that this is an older version of memcached