Mulval: installation setup - graphviz

I am trying to install mulval on my machine following this doc:
http://people.cis.ksu.edu/~xou/argus/software/mulval/readme.html
However, I am not exactly sure how to make changes to the path of XSB, dot and Mulval.
I get the following error when I try to run "make":
~/mulval$ make
(cd src/adapter; make; make install)
make[1]: Entering directory '/home/aditya/mulval/src/adapter'
javac GetCVEID.java -cp :/lib/dom4j-1.6.1.jar:/lib/jaxen-1.1.1.jar:/lib/mysql-connector-java-5.1.8-bin.jar
make[1]: javac: Command not found
Makefile:9: recipe for target 'GetCVEID.class' failed
make[1]: *** [GetCVEID.class] Error 127
make[1]: Leaving directory '/home/aditya/mulval/src/adapter'
make[1]: Entering directory '/home/aditya/mulval/src/adapter'
javac GetCVEID.java -cp :/lib/dom4j-1.6.1.jar:/lib/jaxen-1.1.1.jar:/lib/mysql-connector-java-5.1.8-bin.jar
make[1]: javac: Command not found
Makefile:9: recipe for target 'GetCVEID.class' failed
make[1]: *** [GetCVEID.class] Error 127
make[1]: Leaving directory '/home/aditya/mulval/src/adapter'
Makefile:6: recipe for target 'adapter' failed
make: *** [adapter] Error 2
Any help on getting this installation completed?
Thanks in advance!

Set your MULVALROOT env variable before make:
for instance: export MULVALROOT=/home/aditya/mulval

this error is related to javac, not installed properly:
"make[1]: javac: Command not found"
you can check the version with: javac -version
if not installed, install again with sudo apt install default-jdk
if you have other issues related to lex and/or bison later, install them too:
lex: sudo apt install flex
bison: sudo apt install bison

Related

JModelica fails at compiling (make install)

I tried to install JModelica on my Ubunute 18.04 but I always get a make error.
(I've installed both the required pakages for python and python3)
I followed the installation guide from its userGuide.pdf (https://jmodelica.org/downloads/UsersGuide.pdf) to the point i had to make install it.
$ sudo make install
I get the following error output (last few line):
Makefile:1127: recipe for target 'install-python-packages' failed
make[2]: *** [install-python-packages] Error 1
make[2]: Verzeichnis „/home/user/FMU/jmodelica/JModelica.org/build“ wird verlassen
Makefile:757: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Verzeichnis „/home/user/FMU/jmodelica/JModelica.org/build“ wird verlassen
Makefile:443: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
EDIT:
pretty much erverything is building but the target:
build-python-packages
$ sudo make install-python-packages
this throws the error from above. But I can't identify the wrong lines.
maybe you can try
https://gitlab.com/christiankral/install_jmodelica/blob/master/install_jmodelica.sh
for more information see discussion:
JModelica on Ubuntu 18.04

Unable to build glibc

I'm trying to build glibc 2.27 as a static library from sources on Ubuntu 18.04. This is the command I am using(after making a separate build directory for glibc):
$ git clone git://sourceware.org/git/glibc.git && cd glibc
$ git checkout release/2.27/master
$ cd ..
$ mkdir glibc-build && cd glibc-build
$ ../glibc/configure --enable-kernel=4.4 --disable-shared --enable-static --enable-static-nss --prefix=/usr
$ make
make results in this error:
cc1: fatal error: /home/parallels/glibc-build/libc-modules.h: No such file or directory
compilation terminated.
../Makerules:281: recipe for target '/home/parallels/glibc-build/ucontext_i.h' failed
make[2]: *** [/home/parallels/glibc-build/ucontext_i.h] Error 1
make[2]: Leaving directory '/home/parallels/glibc/csu'
Makefile:215: recipe for target 'csu/subdir_lib' failed
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/parallels/glibc'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
Full log for make
I am running Ubuntu 18.04 and am using the preinstalled versions of gcc and make.
This is a known issue:
Unable to build GLIBC with --disable-shared
In general, this is not a problem because a default build (without --disable-shared) builds both the static and dynamically linked version of the library, and make install DESTDIR=… installs both.

Compiling mcrypt fails (gaa: Command not found)

I have to compile PHP with mcrypt, but for some reason i cannot compile mcrypt using the make command. I´m getting the following error:
gaa -o gaaout.c -i gaa.h mcrypt.gaa
make[2]: gaa: Command not found
make[2]: *** [gaaout.c] Error 127
make[2]: Leaving directory `/usr/local/src/mcrypt-2.6.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mcrypt-2.6.7'
make: *** [all] Error 2
I´m compiling it on Centos 6.6, and the mcrypt version is 2.6.7
Before i compiled i installed the Development Tools packaged via yum.
yum groupinstall "Development Tools"
Also installed: mhash (v 0.9.9.9), libmcrypt (v 2.5.8)
What is the gaa command, and how do i make i available?
FWIW: don't know gaa either, but since src/gaaout.c exists:
touch src/gaaout.c
did the trick for me.

debuild notify make[1]: go: Command not found

I need to build a deb for my golang program.
When I run debuild -uc -us it tells:
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make[1]: Entering directory `/home/vagrant/zbus'
go clean ./zbus-cli/
make[1]: go: Command not found
make[1]: *** [clean] Error 127
make[1]: Leaving directory `/home/vagrant/zbus'
dh_auto_clean: make -j1 clean returned exit code 2
my go compiler is installed correctly, why it still command not found?
Apparently, I just had this problem and found that a package was missing to use this go command.
On Ubuntu, I had to install the golang-go package.
sudo apt-get install golang-go
Also, I actually just typed go at the terminal and it gave me the same command to type to retrieve that package.

Homebrew and Permission denied issue

I try to compile and install libapreq2 via Homebrew package manager.
brew create http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz
The content of the libapreq2.rb formula is as follows.
require 'formula'
class Libapreq2 < Formula
url 'http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz'
homepage ''
md5 'c11fb0861aa84dcc6cd0f0798b045eee'
# depends_on 'cmake'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
end
I proceed with
brew install -vd libapreq2
but unfortunately the compilation ended with errors.
mkdir: /usr/include/apache2/apreq2: Permission denied
make[3]: *** [install-pkgincludeHEADERS] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/bin/install -c .libs/mod_apreq2.so /usr/libexec/apache2/mod_apreq2.so
install: /usr/libexec/apache2/mod_apreq2.so: Permission denied
make[3]: *** [install-pkglibLTLIBRARIES] Error 71
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
Brew try to install some files outside the /usr/local/Cellar/libapreq2/ directory. I wonder how to manage these "permission denied" issues. I tried as root user (i.e., sudo brew install libapreq2), but if I later want to remove the library, only the files in /usr/local/Cellar/libapreq2/ are removed.
Thanks for any pointers.
Try this:
sudo chown -R $(whoami) /usr/local/Cellar/libapreq2/
It works for me!
Your package really shouldn't install anything in the system includes in /usr/include. The place for homebrew packaged includes is /usr/local/include (as symlinks into Cellar). You'll just have to adjust your ./configure invocation to use #{prefix}/include for the includes (probably --incdir or something very similar).

Resources