Find the answer to your Linux question:
Results 1 to 7 of 7
Hi everyone, I installed valgrind-3.3.1/ but had valgrind-2.2.0 installed in my system. When I write on the shell valgrind --version I still get the version 2.2.0. Probably because it is ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    15

    Uninstalling programs

    Hi everyone,

    I installed valgrind-3.3.1/ but had valgrind-2.2.0 installed in my system. When I write on the shell valgrind --version I still get the version 2.2.0. Probably because it is still installed but, I don't know how to uninstall programs in linux, without a package manager. How can I uninstall it from command line?

    Thanks,

    Ed.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Which Linux distro are you using? How did you install newer version?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    15
    I am using CentOS 4.2

    I installed using the README instructions

    ./configure --prefix=/usr/local/bin --without-mpi
    make
    make install

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    I'm sure the prefix is supposed to be /usr/local and not /usr/local/bin when you run ./configure. If you use --prefix=/usr/local, then depending on how your system is setup, the newer version should be found and used first. Alternatively you can use the full path name e.g. /usr/local/bin/valgrind.

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    15
    Thanks a bunch daark.child! that works great!

    I'm sure the prefix is supposed to be /usr/local and not /usr/local/bin
    Ah that explains, why it installed in /usr/local/bin/bin =D.

  6. #6
    Just Joined!
    Join Date
    Mar 2007
    Posts
    15
    Now I'm stuck with another problem though.. how do I uninstall valgrind from /usr/local/bin/bin =\. Someone told me to simply do a "make uninstall" but I have to make sure that the make file does not erase something other than the /usr/local/bin/bin directory. Anyone know how to solve this?

  7. #7
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    "make uninstall" should uninstall only files it installed. Alternatively you should be able to just delete /usr/local/bin/bin (it should be the only directory in /usr/local/bin because directories don't belong in the */bin directories).

Posting Permissions

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