bugGNU Octave - Bugs: bug #42581, "Permission denied" when...

 
 

bug #42581: "Permission denied" when using "run-octave --no-gui-libs" from non-builder account

Submitted by:  Dan Sebald <sebald>
Submitted on:  Wed 18 Jun 2014 05:59:27 PM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 18 Jun 2014 06:34:38 PM UTC, comment #1:

Thanks for your bug report. However, this looks to me like entirely expected behavior of Autotools-Libtool-based builds, not a bug in Octave's build process, and there are easy workarounds to achieve what you want.

First some background. The lt-octave-cli program is a libtool-private linked copy of octave-cli, made so that it will run and find the Octave shared libraries in the build tree. This program needs to be linked only once, and once it exists you should be able to run it as any user that has read and execute permissions on the directories and files. The error message you are seeing indicates that this executable does not exist yet and the user who is trying to run octave-cli does not have write permission to create it. This seems consistent with how you say you are building and running Octave.

What you probably did in the past was to execute either "run-octave" or "make check" as root (or whatever user did the build), this would have created the lt-octave-cli program as a side effect, and you would not have seen this error. If you neglected to do that this time, the error is absolutely correct.

So that's one workaround, simply run "make check" or "run-octave" once as the user who owns the build tree, and you should be good from there.

And of course the better solution is to do an actual "make install" somewhere on your system that all users can access. Any particular reason you are not doing that?

Note that running out of the build tree may work for many tests but is not suitable nor supported for a fully functioning Octave environment. As one example, mkoctfile is not expected to work in the build tree.

And nowhere is it recommended to build Octave as one user and run it out of the same build tree as a different user. Closing as invalid, but of course feel free to reply or comment for further clarification or if I'm missing something.

Mike Miller <mtmiller>
Project Administrator
Wed 18 Jun 2014 05:59:27 PM UTC, original submission:

I've compiled the latest development Octave so that the owner is root. Trying to test the build from a non-root user account results in an error only when attempting the octave-cli version of the file (the GUI version runs fine). I've done a similar thing with past versions (hg update gui-release) and have had no problems. Here is the command and error:

/usr/local/src/octave/octave-for_loop_test/build-dev/run-octave --no-gui-libs
/usr/bin/ld: cannot open output file /usr/local/src/octave/octave-for_loop_test/build-dev/src/.libs/5665-lt-octave-cli: Permission denied

Dan Sebald <sebald>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by sebald (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Jun 2014 06:34:38 PM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1