I’m writing a Shell script using Bash to convert a Robot Framework resource file from Windows to Linux. The contents of the Resource file itself are not important, but here is the required “minimal, complete, and verifiable example”. beep is a typeless empty file used to test a site’s …
Tag: linux
Enabling libmp3lame for FFMPEG on elastic beanstalk
I am trying to enable libmp3lame with FFMPEG in elastic beanstalk (Amazon Redhat Linux machine). I am able to successfully install FFMPEG in /ffmpeg.config with the following script: I need to install libmp3lame however. I’ve tried to do this with an –enable-libmp3lame flag and the directions here…
How to use CHECK_LIBRARY_EXISTS in cmake?
Here’s what I have in my CMakeLists.txt: Result: The symbol exists in that library: Why cmake doesn’t find that? Answer It was dependencies. CHECK_LIBRARY_EXISTS is much more complex than nm -D. CMake actually creates a C project that references that library, and tries to link it. I missed some dependen…
OpenCV 3.1.0 imshow in Linux does not work for webcam (Python)
I’m trying to use code from the official openCV tutorial for showing video from webcam using cv2.imshow() in Ubuntu/Python 3.6: And I get the following error for cv2.imshow(): The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, i…
Evaluating command inside bash script leads to increment in $SHLVL
I have the following bash script (myscript.sh): Now: before sourcing myscript.sh, $SHLVL is 2. After sourcing it, is 3. Why? Shouldn’t the command evaluation exit after echo? Thank you! Answer When you source a script in bash, $0 expands to bash (or at least, the name of the shell bash was started as). …
Makefile – wildcard and recipe build
I have the following makefile I got this message : make: Circular src/paquet/packet_implem.o <- src/paquet/packet_implem.o dependency dropped. gcc -std=c99 -Wall -Werror -Wshadow -Wextra -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -lz -rdynamic -I/home/jy95/local/include -L/home/jy95/local/lib; /usr/lib…
How to install Pip3 pointing a custom installation of Python3 in Ubuntu?
I’m using Ubuntu 17.04 and it has Python 2.7.13 installed. I want to use Python 3 without it colliding with Python 2.7.13. I’ve installed and built Python 3 from source and aliased it without an issue. Right now python is pointing to usr/bin/python which is the system default, and I aliased python…
Is it possible to have my azure functionapp run on linux?
I’m using an ARM template to create my resources but I can’t quite seem to be able to figure out how to get the actual OS running the function app to be linux. The reason I want to do this is just so I can properly build native modules. Its pretty common to have a few native modules and so
Failed to start httpd server: Address already in use
Surely I know that same question is already posted here. However, when I searched it, the status is different from mine and I cannot understand the answers. Therefore I post my problem here. Sorry for duplicating issues. My homepage suddenly doesn’t work and I found out that it failed to start httpd ser…
SmtpClient.Send not working on linux environment
The following code, written in the .net core 2 environment, works in the windows environment but not in the linux environment. Exception: Failure sending mail. InnerExcepiton: StackTrace: Linux: Ubuntu 16.04.3 LTS This is a console app. Why is not working in linux environment? Answer I thought it was a code e…