Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Help with symlink

  1. #11
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Help with symlink

    ok output /lib/libc.so.6 --version command not found also run as root

    readlink -f /lib/libc.so.6
    returns
    /lib/libc-2.13.so
    DUAL BOOT XP & Natty, Trying LFS

  2. #12
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Help with symlink

    I,ll pop back tomorrow thks for your help
    DUAL BOOT XP & Natty, Trying LFS

  3. #13
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Help with symlink

    Hi

    Quote Originally Posted by spiky001 View Post
    ok output /lib/libc.so.6 --version command not found also run as root

    readlink -f /lib/libc.so.6
    returns
    /lib/libc-2.13.so
    I'm not quite sure why you are getting what you are getting. It's late here so it's quite possible my brain has stopped working for the night though.

    Code:
    matthew@matthew-laptop:~$ /lib/libc.so.6 --version
    GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.8) stable release version 2.11.1, by Roland McGrath et al.
    Copyright (C) 2009 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    Compiled by GNU CC version 4.4.3.
    Compiled on a Linux >>2.6.24-27-server<< system on 2011-01-21.
    Available extensions:
            crypt add-on version 2.1 by Michael Glad and others
            GNU Libidn by Simon Josefsson
            Native POSIX Threads Library by Ulrich Drepper et al
            BIND-8.2.3-T5B
    For bug reporting instructions, please see:
    <http://www.debian.org/Bugs/>.
    matthew@matthew-laptop:~$ readlink -f /lib/libc.so.6 
    /lib/libc-2.11.1.so
    matthew@matthew-laptop:~$
    Let's have a look at what it is pointing to. What's the output of

    Code:
    ls -l /lib/libc-2.13.so
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  4. #14
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Help with symlink

    Code:
    spiky@spiky-toshiba:~$ /lib/libc.so.6 --version
    bash: /lib/libc.so.6: No such file or directory
    spiky@spiky-toshiba:~$ readlink -f /lib/libc.so.6
    /lib/libc-2.13.so
    ls -l /lib/libc-2.13.so
    Code:
    spiky@spiky-toshiba:~$ ls -l /lib/libc-2.13.so
    ls: cannot access /lib/libc-2.13.so: No such file or directory
    spiky@spiky-toshiba:~$ sudo ls -l /lib/libc-2.13.so
    [sudo] password for spiky: 
    ls: cannot access /lib/libc-2.13.so: No such file or directory
    spiky@spiky-toshiba:~$
    cd /lib && ls | less just what we need.


    Code:
    ld-linux.so.2
    libatasmart.so.4
    libatasmart.so.4.0.3
    libatm.so.1
    libatm.so.1.0.0
    libbrlapi.so.0.5
    libbrlapi.so.0.5.5
    libbsd.so.0
    libbsd.so.0.2.0
    libbz2.so.1
    libbz2.so.1.0
    libbz2.so.1.0.4
    libcap.so.2
    libcap.so.2.20
    libcrypto.so.0.9.8
    libc.so.6
    libdevmapper-event.so.1.02.1
    ls of i386-linux-gnu

    Code:
    ld-2.13.so
    ld-linux.so.2
    libacl.so.1
    libacl.so.1.1.0
    libanl-2.13.so
    libanl.so.1
    libattr.so.1
    libattr.so.1.1.0
    libblkid.so.1
    libblkid.so.1.1.0
    libBrokenLocale-2.13.so
    libBrokenLocale.so.1
    libc-2.13.so
    libcidn-2.13.so
    libcidn.so.1
    libcom_err.so.2
    libcom_err.so.2.1
    libcrypt-2.13.so
    libcrypt.so.1
    libc.so.6
    libdbus-1.so.3
    libdbus-1.so.3.5.4
    libdl-2.13.so
    libdl.so.2
    ls -l /lib/libc.so.6
    Code:
    spiky@spiky-toshiba:/lib$ ls -l libc.so.6
    lrwxrwxrwx 2 spiky spiky 12 2011-06-19 16:11 libc.so.6 -> libc-2.13.so
    spiky@spiky-toshiba:/lib$
    ls -l /
    Code:
    drwxr-xr-x  19 root root  4096 2011-10-09 18:53 lib
    I think I,ve covered it all here
    DUAL BOOT XP & Natty, Trying LFS

  5. #15
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Help with symlink

    Hi

    I think I,ve covered it all here


    Code:
    spiky@spiky-toshiba:~$ readlink -f /lib/libc.so.6 
    /lib/libc-2.13.so
    and

    Code:
    spiky@spiky-toshiba:~$ ls -l /lib/libc-2.13.so 
    ls: cannot access /lib/libc-2.13.so: No such file or directory
    
    Now we are getting somewhere. The symlink (/lib/libc.so.6) is pointing to a file (/lib/libc-2.13.so) that does not exist.

    The symlink needs to point to

    /lib/i386-linux-gnu/libc-2.13.so
    Open a terminal and type

    Code:
    sudo rm /lib/libc.so.6
    This will remove the link. Then type

    Code:
    sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6
    You are using Natty. I don't believe the link /lib/libc.so.6 is used on Natty. Deleting the link would break Maverick and Lucid and would have to be repaired from a live CD/USB by recreating the symlink.

    Check the link after by typing

    Code:
    /lib/libc.so.6 --version
    Kind regards
    Last edited by matt_symes; October 10th, 2011 at 07:13 PM. Reason: Highlighted dangers on Maverick and Lucid
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  6. #16
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Help with symlink

    Thks for your time and effort now the script runs clean
    DUAL BOOT XP & Natty, Trying LFS

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •