Author Topic: REINSTALL CODE::BLOCKS  (Read 5840 times)

Offline geek67

  • Single posting newcomer
  • *
  • Posts: 3
REINSTALL CODE::BLOCKS
« on: August 17, 2009, 06:31:02 pm »
Hi all,

I have installed code:blocks recently, uninstalled it, because I thought I wont need it. And now I cant reinstall it. My config is a Ubuntu 8.04 Hardy Heron, and I'm new in linux(however worked with UNIX 6years ago for studies).I also have a mysql server with which the c program was meant to work with. I tried everything, install by any way, wheter the konsole says he doesnt find the package, wheter if I use the Adept manager, I clic right and on install, 5secondes frozen and no way to apply changes...
This sounds like the uninstall didnt finish well. On this side, I also purged, cleaned up, no changes. Hope it isnt critical, please HELP!

Offline geek67

  • Single posting newcomer
  • *
  • Posts: 3
Re: REINSTALL CODE::BLOCKS
« Reply #1 on: August 19, 2009, 08:49:14 am »
Looks like I'm the only one who has this problem, or else nobody can answer to that for now... :(

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: REINSTALL CODE::BLOCKS
« Reply #2 on: August 19, 2009, 08:14:23 pm »
Looks like I'm the only one who has this problem, or else nobody can answer to that for now... :(
There is a configuration directory at %APPDATA%, or ~codeblocks in your home directory. I am not sure if you used a package from a repo on Linux not delivered by the C::B team whether uninstall might be broken in general.
Another reason might be that you did updates to your system in the meantime that are not compatible...?! (But then probably other apps are broken, too...)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: REINSTALL CODE::BLOCKS
« Reply #3 on: August 19, 2009, 08:23:05 pm »
How did you install and uninstall it ?

C::B's conf-dir on linux is ~/.codeblocks.
It will not be deleted on uninstall.
I don't know any package that uninstalls configuration-files in the users home-dir.

Your first post is not really clear to me:
does C::B freeze, or your system when you try to install it.

If you try to use a repo, did you ever install C::B manually (via ./configure ...) ?
If that's the case how did you uninstall it, make uninstall should work in this case.

Offline geek67

  • Single posting newcomer
  • *
  • Posts: 3
Re: REINSTALL CODE::BLOCKS
« Reply #4 on: August 21, 2009, 10:58:40 am »
Quote
There is a configuration directory at %APPDATA%, or ~codeblocks in your home directory.
I cant find the config directory, the only remaining code::blocks files are in home/"mynameaccount"/.codeblocks/share/
Quote
I am not sure if you used a package from a repo on Linux not delivered by the C::B team whether uninstall might be broken in general.
I downloaded the gz file, uncompressed it and followed the install instructions on the french ubuntu official web site (http://doc.ubuntu-fr.org/code_blocks?s[]=code&s[]=blocks):
Quote
buntu 8.04 (Hardy Heron)    

deb http://apt.wxwidgets.org/ hardy-wx main

Entrez dans la console la commande suivante pour récupérer la clé publique du dépôt wxWidgets :

wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

Puis installez le packet libwxgtk2.8-0 via apt-get, les dépendances s'installeront d'elles-même :

sudo apt-get install libwxgtk2.8-0

Rendez-vous sur la page des téléchargements de Code::Blocks et téléchargez l'archive qui correspond à votre version d'Ubuntu (32 bits ou 64 bits). Décompressez-le et installez le paquet dont le nom commence par « libcodeblocks0 », pour la version 32 bits :

sudo dpkg -i libcodeblocks0_8.02-0ubuntu1_i386.deb

puis le paquet dont le nom commence par « codeblocks_8.02 » (ici, toujours pour la version 32 bits) :

sudo dpkg -i codeblocks_8.02-0ubuntu1_i386.deb
. And it worked fine! To translate some little details, they said to add the wxwidgets source, and later to go on the official code::blocks to get the gz file...
Quote
Another reason might be that you did updates to your system in the meantime that are not compatible...?! (But then probably other apps are broken, too...)
Yes I did some auto updates for my ubuntu, but I thought that code::blocks, as a software,  shouldnt be subject to troubles because of this...
And to uninstall it, i used the apt-get installer interface in the k (sometimes I do dummy things :? ) And since then , I tried every possible method to reinstall but it didnt work.

WAIT WAIT. I just got into the adept packages manager and the codeblocks packages dont show up anymore. I reinstalled, and IT WORKS! It must have been some bad update like you presumed Morten. Even if I'm not a linux Pro, I really felt bad about the possibility of corrupting my machine because of a wrong move I did.

Thanks for supporting guys, PROBLEM SOLVED
LONG LIFE TO OPENSOURCES!!!  :P