Dockkerfile has some error - dockerfile

The following docker file:
ADD http://kr.archive.ubuntu.com/ubuntu/pool/universe/a/audit/libaudit0_1.7.18-1ubuntu1_amd64.deb /
RUN dpkg -i /libaudit0_1.7.18-1ubuntu1_amd64.deb
gives me the following error:
dpkg-deb: error: `/libaudit0_1.7.18-1ubuntu1_amd64.deb' is not a debian format archive
dpkg: error processing archive /libaudit0_1.7.18-1ubuntu1_amd64.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/libaudit0_1.7.18-1ubuntu1_amd64.deb
How do I resolve it?

Related

unable to install backports.zoneinfo

when i execute 'pip install -r requirements.txt ' this is displayed and i can't download backports.zoneinfo .
`(venv) ###########Air-de-#### ###### % pip install -r requirements.txt
...
lib/zoneinfo_module.c:1:10: fatal error: 'Python.h' file not found
#include "Python.h"
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Successfully built PyYAML
Failed to build backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
(venv) #######Air-de-###### ####### % pip install backports.zoneinfo
...
lib/zoneinfo_module.c:1:10: fatal error: 'Python.h' file not found
#include "Python.h"
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Failed to build backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects`

Bazel Build Permission denied

Recently, I'm trying to learn the NVidia Isaac which is built by Bazel.
While I was following the document here:
https://docs.nvidia.com/isaac/isaac/doc/getting_started.html#running-an-application
I encountered an error kept saying the cpp files Bazel need to build is "Permission denied".
The error message looks like below:
Use --sandbox_debug to see verbose messages from the sandbox
gcc: error: engine/alice/components/Subprocess.cpp: Permission denied
gcc: fatal error: no input files
compilation terminated.
ERROR: /home/acas/HDD/CatDog/Isaak/engine/alice/BUILD:23:1: Couldn't build file engine/alice/_objs/impl/ReplayBridge.o: C++ compilation of rule '//engine/alice:impl' faed (Exit 1) crosstool_wrapper_driver_is_not_gcc_host.py failed: error executing command external/toolchain/crosstool/scripts/crosstool_wrapper_driver_is_not_gcc_host.pyD_DEFAULT_SOURCE -U_FORTIFY_SOURCE -fstack-protector -Wall -Werror -B/usr/bin -Wunused-but-set-parameter ... (remaining 183 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
gcc: error: engine/alice/components/ReplayBridge.cpp: Permission denied
gcc: fatal error: no input files
compilation terminated.
ERROR: /home/acas/HDD/CatDog/Isaak/engine/gems/image/BUILD:42:1: Couldn't build file engine/gems/image/_objs/cuda_conversions/yuv2rgb.cu.o: error while parsing .d file:root/.cache/bazel/_bazel_root/6ab44b9a455585caa8f9f5f55ddd002b/execroot/com_nvidia_isaac/bazel-out/k8-opt/bin/engine/gems/image/_objs/cuda_conversions/yuv2rgb.cu.d (No ch file or directory)
gcc: error: engine/gems/image/cuda/yuv2rgb.cu.cpp: Permission denied
gcc: warning: '-x c++' after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
Target //apps/samples/stereo_dummy:stereo_dummy failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 6.627s, Critical Path: 0.62s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 0 processes.
FAILED: Build did NOT complete successfully
And so much the same "Permission denied" error.
I've tried root, sudo, but none of that works.
Is anyone has the same Bazel problem (I think this problem is not about NVidia Isaac but Bazel)?

installing gdal on mac os sierra

I have a Django project that I want to install and it uses GDAL. The documentation refers me to this page in the Django documentation. I have been able to install GEOS and PROJ.4. I wanted to use the latest GDAL which is 2.2.1 and ./configure command failed so I followed this instructions and it compiled. However, make command now fails with the following error
In file included from cpl_odbc.cpp:30:
/Users/DNG/gdal-2.2.1/port/cpl_odbc.h:39:10: fatal error: 'sql.h' file not found
#include <sql.h>
^
1 error generated.
make[1]: *** [cpl_odbc.o] Error 1
make: *** [port-target] Error 2
sudo find / -name sql.h outputs:
find: /dev/fd/DNG: No such file or directory
find: /dev/fd/DNG: No such file or directory
/usr/local/Cellar/unixodbc/2.3.4/include/sql.h
/usr/local/include/sql.h
/usr/local/php5-7.0.18-20170506-095200/include/sql.h

How to compile and run a vmmlib test program?

I have successfully installed vmmlib 1.7 using the following steps:
Downloaded the files from https://github.com/VMML/vmmlib/tree/1.7
and followed the steps below:
mkdir vmmlib/build
cd vmmlib/build
cmake ..
make
Now, I'm trying to run a program in the test folder "t3_hosvd_test.cpp" , but I'm not able to run it.
I tried to run the Makefile but got the following error:
svd_test.cpp:13:0:
../include/vmmlib/vmmlib.hpp:33:30: fatal error: vmmlib/version.hpp: No such file or directory
compilation terminated.
: recipe for target 'svd_test.o' failed
make: *** [svd_test.o] Error 1
I also tried to run by giving the following command in the terminal:
g++ t3_hosvd_test.cpp -lapack -lvmmlib
but got an error:
t3_hosvd_test.cpp:2:31: fatal error: vmmlib/t3_hosvd.hpp: No such file or directory
compilation terminated.
Can someone help me compile and run this program on Ubuntu 16.04?
When compiling directly, you need to provide the include path via the -I option.
g++ t3_hosvd_test.cpp -I/usr/local/vmmlib17/include -lapack -lvmmlib
Also ensure that your include path is set to vmmlib/include and not vmmlib/include/vmmlib

Q: Not able to install DTW algorithm in DSX's R notebook

I am trying to install DTW package of R in DSX's R notebook.
when running install command:
install.packages("dtw")
gives following error:
"installation of package ‘dtw’ had non-zero exit status” warning.
Additional output from the installation attempt can be found in the log file for your R kernel. In the R notebook, execute
Sys.getenv("LOG_FILE")
to get the name of the log file. Then open a Python notebook and execute
!cat <name-of-the-log-file>
to see the contents of the log file.
After trying to install dtw, my log file showed:
gcc -std=gnu99 -shared -L/usr/local/lib64 -o dtw.so computeCM.o Launching java with spark-submit command /usr/local/src/spark20master/spark/bin/spark-submit sparkr-shell /gpfs/fs01/user/s10d-7f8820dde34dec-4cf890276e2b/notebook/tmp/RtmpofrZnw/backend_portd1c4793df5e
which looks like garbled log output from two processes writing to the same log file. But a bit further down, I find:
gcc: error: Launching: No such file or directory
gcc: error: java: No such file or directory
gcc: error: with: No such file or directory
gcc: error: spark-submit: No such file or directory
gcc: error: command: No such file or directory
gcc: error: sparkr-shell: No such file or directory
gcc: error: /gpfs/fs01/user/s10d-7f8820dde34dec-4cf890276e2b/notebook/tmp/Rtmpkh93V2/backend_porte8853270b27: No such file or directory
make: *** [dtw.so] Error 1
ERROR: compilation failed for package ‘dtw’
So the garbled line was actually executed. I'd say that the installation logic for the dtw package makes some assumptions about the environment which are not satisfied in DSX.
To dig further into the problem, you'll have to debug the dtw installer, or find somebody who can do that for you.