LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2014, 03:13 PM   #1
yipengt
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
Exclamation Using Code::Block IDE to develop C/C++ project, error: Permission Denied


I am using Code Block to develop a C/C++ project and I can not even compile the project.

The IDE call g++ and it gave me "Permission Denied" error.

I understand that I am not root user.

So I open the terminal and type "su -"

I entered the root password.

I close the Code block, open it again, and try to compile the project, but the "Permission denied" error still there.

I use PCLinuxOS.

Can anybody help on that so that I can use this IDE as a root user.

Thanks,
 
Old 12-09-2014, 07:56 AM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,248

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
check if you have g++ installed
 
1 members found this post helpful.
Old 12-09-2014, 08:26 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The PCLinuxOS package name is :

gcc-c++
 
Old 12-09-2014, 08:49 AM   #4
yipengt
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile I got it.

I did have gcc and g++.

I go to terminal to do "su -" and password.

And in the same terminal, i launched "codeblocks", and it works. this way, it's like runnig the program with root previlege. now i can compile/debug my "Hello World".

Thank you for all your help. I believe I will have more problem down the road with Linux.
 
Old 12-09-2014, 10:38 AM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,248

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
run a make clan and fix the file permission of your source file,
or change the locations of your project into a folder where you have permissions,
this is a better option than working as root
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 09:34 AM
TFTP server returns "Error Code 0: Permission Denied" gi99 Linux - Networking 2 04-19-2011 07:17 AM
223.7Gi block on server HD - Permission Denied: Why? ddc441 Linux - Hardware 2 11-09-2010 09:34 AM
Error in Perl Code : Bad switch statement(Problem in code block)? near ## line # suyog255 Programming 4 02-20-2008 06:35 PM
Permission Denied when erasing ide-scsi tape reeg99 Linux - Hardware 5 02-20-2006 06:51 PM


All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration