You are not logged in.

#1 2023-09-21 04:33:43

caliperinos
New Member
Registered: 2023-09-21
Posts: 3

Getting permission denied running make on c projects

I upgraded from blHydrogen to blBeryllium and am having problems using make to compile c projects.

Specifically, using blHydrogen (or any other linux for that matter), running make on a c project does not require sudo/root. Compiling the same c projects in blBeryllium, I keep getting permission denied errors. My workaround is to run sudo make, but that shouldn't be necessary.

What changed? How to fix this?

Offline

#2 2023-09-21 05:23:51

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: Getting permission denied running make on c projects

Hi @caliperinos I'm sorry you're having this issue, but I don't think it's due to anything that BunsenLabs has done. I use Beryllium on a daily basis and don't recall any such permissions problem on the (rare) occasions I use 'make'. Can you compare with another system using Debian 11?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#3 2023-09-21 12:58:36

caliperinos
New Member
Registered: 2023-09-21
Posts: 3

Re: Getting permission denied running make on c projects

Agreed, it is odd.

I ran beryllium in virtualbox before fully installing it. In virtualbox on the live run from the iso file, make runs just fine. I noticed the sudoers entry for the live user on the iso, setting it up as

myusername ALL=(ALL) NOPASSWD: ALL

on the final install as a workaround. I tried ubuntu and debian, and they accept the makefiles with no problem.

If anyone wants to try it, I am using openframeworks. Download that and try to make one of the examples. Permission denied errors when trying to make new directories and files during the compile process.

After make fails, I will run

sudo chown -R user:user /pathToOpenframeworks/

then rerun make, which will work. But, when doing make clean, then make, it fails on permission denied.

I checked the makefiles and nowhere will it try to set root ownership of files. I also tried making a barebones c program with a minimal makefile, and it fails on permission denied too.

Offline

#4 2023-09-22 02:10:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: Getting permission denied running make on c projects

caliperinos wrote:

I tried ubuntu and debian, and they accept the makefiles with no problem.

What was the Debian version you tried? Beryllium is Debian 11 and should behave the same (for this, anyway) as regular Debian 11.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#5 2023-09-22 02:39:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: Getting permission denied running make on c projects

caliperinos wrote:

If anyone wants to try it, I am using openframeworks. Download that and try to make one of the examples. Permission denied errors when trying to make new directories and files during the compile process.

Sorry, this is a rather large download, and also needs some setting up before use. It looks as if it would take more time than I have free right now.

Of course, you've done all this I guess: https://openframeworks.cc/setup/linux-install/

I also tried making a barebones c program with a minimal makefile, and it fails on permission denied too.

Stripping the problem down to something basic is a good approach.
Could you share the content of the minimal files you used?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#6 2023-09-24 20:38:51

caliperinos
New Member
Registered: 2023-09-21
Posts: 3

Re: Getting permission denied running make on c projects

I don't care anymore. This whole thing is a waste of time.

Offline

Board footer

Powered by FluxBB