Code::Blocks Forums

User forums => Help => Topic started by: Andries on February 23, 2007, 11:33:27 am

Title: Code::Blocks was configured to be installed in 'C:\Program Files\CodeBlocks/shar
Post by: Andries on February 23, 2007, 11:33:27 am
Dear Code::Blocks team,

I have successfully installed CB under Ubuntu, but don't get it working under Windows XP Service Pack 2. I have tried this various times either using the files from the Nightly Build posts and from the installer provided at

http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/

But be convinced the following error message does not arise because of the use of this installer, I also get it using the nightly builds, and manipulation of the mentioned environment variable to some value does not help.

I get the following error message :

Cannot find resources...
Code::Blocks was configured to be installed in 'C:\Program Files\CodeBlocks/share/codeblocks'.
Please use the command-line switch '--prefix' or set the CODEBLOCKS_DATA_DIR environment variable to point where Code::Blocks is installed, or try re-installing the application...

Who can help me to get beyond this error message. (I am sure I am being a naive, "stupid" user of CB.)
Thanks a lot in advance!

Andre
Title: Re: Code::Blocks was configured to be installed in 'C:\Program Files\CodeBlocks/
Post by: Biplab on February 23, 2007, 12:10:43 pm
Try deleting C:\Documents and Settings\<User Name>\Application Data\codeblocks folder and then run code::blocks again. :)
Title: Re: Code::Blocks was configured to be installed in 'C:\Program Files\CodeBlocks/
Post by: Andries on February 23, 2007, 03:03:33 pm
Dear Biplab,

The file you mentioned did not exist. There was a directory

C:\Documents and Settings\<UserName>\.Codeblocks

Deleting that directory did not make a difference. I still get the same error message posted earlier.
I also checked that there was no .Codeblocks directory for the "AllUsers" or "Administrator" accounts.

Best regards,

Andre
Title: Re: Code::Blocks was configured to be installed in 'C:\Program Files\CodeBlocks/
Post by: Biplab on February 23, 2007, 03:35:26 pm
The error comes up as C::B can't find it's resources. The resources are stored in <C::B>\share\codeblocks directory. But while loading C::B default.conf file is pointing the resources to a different directory.

Locate this file and delete it.

Regards,

Biplab
Title: Re: Code::Blocks was configured to be installed in 'C:\Program Files\CodeBlocks/
Post by: Andries on February 23, 2007, 04:21:59 pm
Dear Biplab,

The fact that I could not find the .conf file you mentioned on my computer prompted me to check whatever ENVIRONMENT variables I had defined like the one in my error message, and that for a new clean attempt at correct operation I should also delete such variables. That solved the problem.
Thanx a lot for you help in hunting down this problem. Now I can use the fantastic C::B also under Windows!

Best regards,

Andre