Solved Guidance on compiling an app

Solved issue

ron.alan

Well-Known Member
Joined
Dec 24, 2023
Messages
568
Reaction score
479
Credits
3,985
So there is a problem on Mate's panel applet for the weather (I'm on Mate 1.26). So I downloaded the source code for this applet (version 1.28) from here. During compiling (this is my first time) I made it all the way to the "make install" step, but at the very end I got this: make: *** [Makefile:494: install-recursive] Error 1. Above this line there are a bunch of "cannot create directory ‘/usr/local/share/locale’: Permission denied" lines. Anyone know how I can fix this?
 


@ron.alan :-

My own compiling skills are not great. But from what I know of the usual GNU gcc 'make' process, once you've reached 'make install', the applet itself will have been built. All the build process is doing now is much the same as the package manager would do, i.e., installing the various components into their assigned places in the file-system. And from the sound of things, it's getting stuck on the internationalisation stuff ('locale').....in other words, all the different language translations.

(It's like any script; it follows it through line by line. If it gets to a point where things don't go as expected, it'll simply halt.....with often 'cryptic' error messages that don't always make sense).

How many of those are you yourself likely to actually need apart from English...hmm? It's possible that all you need to do is to swap the actual 'applet' itself, and everything will work fine. There again, there may be something needed in the translation itself in order for everything to work as it should. Can't say.

Others here will doubtless know more about the process. Sorry I can't be of more help, but this is something I only do rarely. The last thing I compiled was an up-to-date version of the glibc, about a month ago. That was the first thing I'd compiled for nearly 4 years..!


Mike. ;)
 
Last edited:
Generally Error 1 is the indicator of failure and specifically line 494 a problem occurred with the target of the make file and the make utility exited.
@dos2unix will most likely agree and I believe can give you more insight to this.

You may have missing libraries ( packages/engines) that are not installed that assist libmateweather to be able to launch and work.:)

 
So there is a problem on Mate's panel applet for the weather (I'm on Mate 1.26). So I downloaded the source code for this applet (version 1.28) from here. During compiling (this is my first time) I made it all the way to the "make install" step, but at the very end I got this: make: *** [Makefile:494: install-recursive] Error 1. Above this line there are a bunch of "cannot create directory ‘/usr/local/share/locale’: Permission denied" lines. Anyone know how I can fix this?
The error, as @Alexzee mentioned is at line 494 in the Makefile, but it's telling you that it cannot create the directory: /usr/local/share/locale. The "make install" command needs to be run as root (or sudo) so that it can make amendments to the system filesystem. Normally one would expect that root would be able to create that directory, if the code was setting it, but something appears to have obstructed that. One could look around the indicated line in the code to see if one could make an adjustment, but if this is your first time, that's possibly not an option.

It might be possible for you to create that directory as root so that the app's code only has to fill it with whatever it has to place there, rather than create it as well. In that case, you could create that directory before beginning the whole process again of configuring and compiling from the very start. No guarantees though because I'm only responding to the error message, not the code which I'm not familiar with.
 
So I finally had success. Had to go back 3 times to keep adding the missing directories, but finally got it. Thanks to all who helped.
A few words on how you finally got it would give details and inspire others should they encounter what you have.
 


Follow Linux.org

Staff online

Members online


Top