[redland-dev] [Raptor RDF Syntax Library 0000645]: rdfdiff fails with mkdir error when run from /usr/local/bin

Mantis Bug Tracker mantis-bug-sender at librdf.org
Fri Jul 27 18:54:35 EDT 2018


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=645 
====================================================================== 
Reported By:                dbooth
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   645
Category:                   utilities
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2018-07-27 15:54
Last Modified:              2018-07-27 15:54
====================================================================== 
Summary:                    rdfdiff fails with mkdir error when run from
/usr/local/bin
Description: 
rdfdiff fails with an error message about "mkdir: cannot create directory" when
run from /usr/local/bin .   For example:

$ /usr/local/bin/rdfdiff --version
mkdir: cannot create directory '/usr/local/bin/.libs': Permission denied
/usr/bin/ld: cannot open output file /usr/local/bin/.libs/15841-lt-rdfdiff: No
such file or directory
collect2: error: ld returned 1 exit statusn

Steps to Reproduce: 
1. Build and install raptor.
2. Copy rdfdiff to /usr/local/bin, so that it will be in everyone's path:
   $ sudo cp raptor2-2.0.15/utils/rdfdiff /usr/local/bin
3. Verify that it is there, and the permissions look okay:
   $ ls -l /usr/local/bin/rdfdiff
   -rwxr-xr-x 1 root root 7946 Jul 27 18:49 /usr/local/bin/rdfdiff
3. Try to run it:
   $ /usr/local/bin/rdfdiff --version
   mkdir: cannot create directory '/usr/local/bin/.libs': Permission denied
   /usr/bin/ld: cannot open output file /usr/local/bin/.libs/18880-lt-rdfdiff:
No such file or directory
   collect2: error: ld returned 1 exit statusn
4. Notice the error message.  In this case it should have given a message saying
"unrecognized option '--version'".   But it doesn't matter what options are
given.  It seems to be trying to find a library that is in the directory where
it was built.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2018-07-27 15:54 dbooth         New Issue                                    
======================================================================



More information about the redland-dev mailing list