Autoconf - use macro from m4/revision.m4 in AC_INIT arg list - autoconf

OK, I have a file m4/revision.m4 which has the macro REC_SVN_REV defined. I would like to use that in the version info in AC_INIT in configure.ac. But is it OK to call AC_CONFIG_MACRO_DIR([m4]) before AC_INIT?
Thanks in advance

m4_include([revision.m4])
AC_INIT([*******], [svn[]REC_SVN_REV], [i****#b*********.com], [*******-prealpha])
Works fine!

Related

Cannot run program"python3":CreateProcesserror=2,The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

I am trying to install Spark and it seems the following mistake appears when i try to perform a simple calculation.
Any help is appreciated.
run this in your terminal
export PYSPARK_PYTHON=python3.9.7
see if it works now

Change npm start to another command

In NodeJS, sometimes I want to change the npm start to another command, for example like ns, how can I do that? Thank you!
You can use a bash “alias” for this.
Add the following to your bash_profile (or equivalent file):
alias ns=“npm start”

Makefile:1059: *** missing separator. Stop

I have a project writed for DEC Unix v4. I want to compile it for linux.
My project have Imakefile, I run xmkmf to generate Makefile and after that run make to compile but I get Makefile:1059: *** missing separator. Stop.
When I see this post I installed SparkyLinux and install CDE and libmotif-dev on it for Motif and CDE and again I am going to generate Makefile and run make, but my problem still
line 1059: MComplexProgramTarget(_gdsv_.o,$(LOCAL_LIBRARIES),)
That line is valid in an Imakefile, but not in a Makefile. It looks like a macro for the C preprocessor. When the preprocessor does not find a definition for a macro, it leaves it as-is.
The next question is therefore: Why is the macro MComplexProgramTarget undefined, and which file defines it usually?
To answer this, you need to know where imake reads its definition files ("strace -f xmkmf" can help you with this), and in which file does this word appear?
The most probable thing is that you have lead to some incompatibility issue with gmake, which should be the make version you are using. Install BSD make and use it to build the system. Probably this will solve your problem (or not, but I have had this kind of problems) Depending on the platform, the package is called bmake or pmake.

During compiling, it fails at "cannot find -lexecinfo"

This is Slackware 14.1 Linux.
During compiling it always fail at
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lexecinfo
Is there a library missing?
The problem is I don't know the exact file name it's looking for, I have a
/usr/include/execinfo.h
Any help will be appreciated.
If the program is trying to use backtrace(3) or the like, then it's likely you do not actually need the -lexecinfo option to compile the source. Edit your Makefile and try removing it as see if it will build.

Groovy: How to run .groovy script in silent mode?

How to run .groovy script in silent mode ?
I think You can use.
groovy myScript.groovy --silent
Hope this can help you!
I believe that the Windows Installer contains groovyw.exe which should do what you want.
Never tried it though :-/

Resources