Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th July 2012, 05:34 AM
daytooner Offline
Registered User
 
Join Date: Apr 2009
Posts: 182
linuxchrome
gawk linked to itself after update

(Just saw sticky about bash bug. Will try re-install, and get back here)


After doing an update (for F16) things went from bad to worse.

The new kernel didn't get installed properly, since grubby failed to run. But that was caused by (g)awk not being found. While tracing that problem down, I found:
Code:
/usr/bin/gawk -> ../../bin/gawk
/bin/gawk -> ../usr/bin/gawk
This also creates a problem for booting with a previous kernel as well, since it needs to run awk.

So, like, where is the real gawk?

I tried to reinstall gawk (via yum). But even if I deleted both symlinks, the reinstall just puts them both back.

FWIW: Looking at an F17 installation, I see that a real gawk is in both directories (no links). In an old F14 installation there is a real gawk in /bin, and a symlink to that in /usr/bin.

Any suggestions on how to correct this?

TIA

ken

Last edited by daytooner; 9th July 2012 at 05:39 AM. Reason: may be related to bash bug (see sticky)
Reply With Quote
  #2  
Old 9th July 2012, 06:59 AM
hmmsjan Offline
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
linuxchrome
Re: gawk linked to itself after update

Dear Daytooner,

A quick install of the f16 updates RPM gawk-4.0.1-1.fc16.i686.rpm
(into empty root folder)
shows the following structure:

Quote:
ls -l bin usr/bin
bin:
totaal 868
lrwxrwxrwx 1 root root 4 9 jul 07:32 awk -> gawk
-rwxr-xr-x 1 root root 483652 7 jun 14:00 dgawk
-rwxr-xr-x 1 root root 400184 7 jun 14:00 gawk

usr/bin:
totaal 396
lrwxrwxrwx 1 root root 14 9 jul 07:32 awk -> ../../bin/gawk
lrwxrwxrwx 1 root root 14 9 jul 07:32 gawk -> ../../bin/gawk
-rwxr-xr-x 1 root root 3188 7 jun 14:00 igawk
-rwxr-xr-x 1 root root 400184 7 jun 14:00 pgawk
The so the "real" gawk must be /bin/gawk. I assume you're upgrading F16 with the classical
separate /bin and /usr/bin directories ?!
With /bin as symlink to /usr/bin it looks like gawk is overwritten by it's symlink....


Also in F17 there is only one gawk binary: the whole /bin is a symlink to /usr/bin.

Good luck
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
  #3  
Old 10th July 2012, 01:16 AM
daytooner Offline
Registered User
 
Join Date: Apr 2009
Posts: 182
linuxfedorafirefox
Re: gawk linked to itself after update

Quote:
Originally Posted by hmmsjan View Post

I assume you're upgrading F16 with the classical
separate /bin and /usr/bin directories ?!
With /bin as symlink to /usr/bin it looks like gawk is overwritten by it's symlink....


Also in F17 there is only one gawk binary: the whole /bin is a symlink to /usr/bin.

Good luck
In my F16, bin is a symlink to usr/bin, and this is what happens:

Code:
[root@Foghorn /]# ls -lh /bin/gawk
lrwxrwxrwx 1 root root 14 Jul  8 21:10 /bin/gawk -> ../../bin/gawk
[root@Foghorn bin]# ls -lh /usr/bin/gawk
lrwxrwxrwx 1 root root 14 Jul  9 16:59 /usr/bin/gawk -> ../../bin/gawk
Tried removing the gawk symlink in /bin , then reinstalling gawk, but as you pointed out, the symlink overwrites the actual file.

Can I get the actual file and manually put it into /usr/bin? If so, where can I get it?

FWIW: I thought this might have been caused by the "bash" bug mentioned in the sticky in this forum. But I did try reinstalling bash, and that did nothing to fix this.

I also have a problem with vim: trying to install both vim-minimal and vim-enahnced yum complains:
Code:
Transaction Check Error:
  file /bin/ex from install of vim-minimal-2:7.3.515-2.fc16.x86_64 conflicts with file from package vim-enhanced-2:7.3.515-2.fc16.x86_64
Looks like something got really hosed in my installation.

I might just to do a fresh install of F17 to get past this.

Thx for the help.

ken
Reply With Quote
  #4  
Old 10th July 2012, 05:44 AM
cazo Offline
Registered User
 
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 333
linuxchrome
Re: gawk linked to itself after update

Did you install gawk from testing or rawhide repo? The reason I ask is, my gawk looks like:
Code:
[root@localhost ~]# ls -lh /bin/gawk 
-rwxr-xr-x. 1 root root 417K Jun  7 07:00 /bin/gawk
[root@localhost ~]# ls -lh /usr/bin/gawk 
lrwxrwxrwx. 1 root root 14 Jun 30 07:13 /usr/bin/gawk -> ../../bin/gawk
Mine is gawk-4.0.1-1.fc16.x86_64, which was last updated on 30 Jun 2012.
Reply With Quote
  #5  
Old 10th July 2012, 06:42 AM
hmmsjan Offline
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
linuxfirefox
Re: gawk linked to itself after update

Dear Daytooner,

From the Fedora 16->17 upgrade notes where conversion to symlinked /bin is described:

Quote:
After the conversion, the system needs to be immediately updated to Fedora 17. No packages from Fedora 16 or Fedora 15, or older rawhide packages must be installed anymore. Make sure to disable any Fedora 15 and Fedora 16 repositories in yum!
If you want to have a working gawk again:

Quote:
#####Boot rescue system with network support and mount current installation
chroot /mnt/sysimage
#####Download the gawk RPM with e.g. wget
cd /
rpm2cpio /home/user/Download/gawk-4.0.1-1.fc16.i686.rpm | cpio -ivd ./bin/gawk
Good luck and be prepared for more problems!
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
Reply

Tags
gawk, linked, symlink, update

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing gawk paulj_j Using Fedora 4 8th July 2012 03:46 PM
Using gawk recursively CD-RW Programming & Packaging 5 10th August 2009 09:36 PM
gawk question daniel_I_l Programming & Packaging 4 19th November 2008 09:27 AM
GAWK v3.1.4 performance issue awillard69 Using Fedora 0 22nd March 2006 04:15 PM
install hangs at package gawk pigpen Installation and Live Media 3 5th May 2004 10:27 PM


Current GMT-time: 19:20 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat