Unbound variable error when installing ffmpeg on openshift online - ffmpeg

I followed the steps on https://forums.openshift.com/ffmpeg but when performing make install I got this error:
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffserver.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffserver-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
/var/lib/openshift//python//bin/install: line 10: version: unbound variable
make: *** [install-man] Error 1
And It's the install file(which gives error):
#!/bin/bash -eu
source $OPENSHIFT_CARTRIDGE_SDK_BASH
case "$1" in
-v|--version)
version="$2"
esac
echo "$version" > ${OPENSHIFT_PYTHON_DIR}env/OPENSHIFT_PYTHON_VERSION
mkdir -p ${OPENSHIFT_PYTHON_DIR}template
# Call the version specific install script
exec ${OPENSHIFT_PYTHON_DIR}usr/versions/${version}/bin/install $version
So what is the problem ? And how can I solve it?
thanks

/var/lib/openshift//python//bin/install is the bin/install script from the OpenShift Python cartridge, so I'm very confused why it's getting called from make install.
Are you using a Python cartridge? I suspect make could be incorrectly resolving the standard install command to your Python cartridge due to a bad PATH variable. In your OpenShift environment try
which install
and if you get anything other than /usr/bin/install then that's the problem. If you get the correct path here, then maybe the PATH when make calls install is messed up. Try to print the PATH at that point in the Makefile to see what's going on.

When i tried to compile FFMPEG from Source Code, I faced insufficient space issue in the gear. However, using the binary from the url "https://www.johnvansickle.com/ffmpeg/" works in openshift without any issue.
I am using the git based binary of 3.1.3 version and its working fine for me.
Hope this helps...

Related

Unable to install avm

I am using instructions from this site to install Anchor on my Windows laptop
https://book.anchor-lang.com/getting_started/installation.html#anchor
I have executed the command avm install latest and it gave this error:
Error: The system cannot find the file specified. (os error 2)
And the next command avm use latest returns this error:
Version 0.25.0 is not installed, no current version. Error: You need to run 'avm install 0.25.0' to install it before using it.
What should I do?
Try running the install command like this: cargo install --git https://github.com/project-serum/anchor --tag v0.26.0 anchor-cli --locked
I'm not 100% sure why this works, however, I was running into the same exact problem. If you specify the version via the --tag flag (v0.26.0 would be where you replace with the version you're interested in) and change the command from avm to anchor-cli it seems to work.

Trouble installing wget on Mac os

I'm trying to install wget-1.19.tar.xz.
What i did :
$ ./configure --with-ssl=openssl && make
$ sudo make install
Here the message error :
There seems to be no Makefile in this directory. You must run
./configure before running 'make'. make: ***
[abort-due-to-no-makefile] Error 1
Makefile.am and Makefile.in are in my directory.
Any ideas ?
I found this super useful guide that allows you to quickly install Rudix wget in less than 5 mins. Just installed it myself.
https://coolestguidesontheplanet.com/install-and-configure-wget-on-os-x/
For the easiest method, just go with the first option, download the package from the link(comes directly from Rudix)
rudix,org/packages/wget,html
Rudix offers wget for multiple supported Mac OS X versions
If you decide against installation with a .pkg, there are more options available along with full walk throughs of the installation process at the first link that I mentioned.
Hope this helps!
I too faced same,
I recommend installing wget via homebrew!, follow the below commands for smooth wget installation:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
Then you are good to go..

What is this error `make.exe": no_c_compiler: Command not found`

I'm trying to build grpc from source on Windows 2012 Server edition. I downloaded and installed Python 3.5 from the Python website and installed the entire MinGW package as well as git along with git bash. Following the instructions for building from source:
$ git clone https://github.com/grpc/grpc.git
$ cd grpc
$ git submodule update --init
$ make
$ [sudo] make install
I get the aforementioned error after executing make. Here's the shell output for your perusal.
PS C:\Users\thunderboltsid\grpc> make
[MAKE] Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc.pc
[MAKE] Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc_unsecure.pc
[MAKE] Generating cache.mk
[C] Compiling third_party/zlib/adler32.c
make.exe": no_c_compiler: Command not found
make.exe": *** [/c/Users/thunderboltsid/grpc/objs/opt/third_party/zlib/adler32.o] Error 127
I really can't understand what is this error supposed to be. Tried googling but that didn't help. Any input will be appreciated.
you may need run apt-get install which
install build-base in your system, example:
apt-get install build-base
You may simply have no C compiler installed, not even gcc. If that's the reason then installing gcc resolves the issue:
apt get install gcc

Installing nyt streamtools: go-bindata: Command not found

I am trying to install nyt streamtools, the open-source project for ETL, but I can't seem to get my go environment right. I'm running Centos 6.5. Compiling from source should be easy, but I keep getting this error when I run the make command:
localhost streamtools]$ make
go get github.com/jteeuwen/go-bindata/...
go-bindata -pkg=server -o st/server/static_bindata.go gui/... examples/...
make: go-bindata: Command not found
make: *** [build/st] Error 127
Any help is greatly appreciated.
Added lines to ~/.bashrc:
export GOPATH="$HOME/go"
PATH="$PATH:$GOPATH/bin"
run
source ~/.bashrc
After setting GOPATH and PATH this did the trick.
For Linux you can also use this:
sudo apt install go-bindata
Windows(from comment by #kundan-roy):
choco install go-bindata
MacOS(from comment by #okan-cetin):
brew install go-bindata

Can't install psycopg2

I'm trying to install psycopg2 so I can use PostgreSQL in Python and Django. I have run into multiple errors in the last few hours trying to install it, and can't seem to solve the latest one. When I run:
setup.py install
on the psycopg2 in the command console it attempts to install it, but then gives an error when trying to execute link.exe in the Visual Studio 8 folder.
This doesn't make sense to me, considering I got that executable to work when I launch it from Windows Explorer, and from the command console. I even made an environment variable for it. However, it keeps giving:
"error: command C:\Program Files(x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe" failed with exit status 1120
In case anyone goes down this rabbit hole also, make sure your pip is up-to-date:
$ pip install -U pip
$ pip install psycopg2-binary
See: http://initd.org/psycopg/docs/install.html.
That's 3 hours of my life I won't get back.
Turns out this 3 and a half hour process I've been going through was unecessary. an exe installer of psycopg2 can be downloaded from here
Had the same problem.
Image of the error message
first run
sudo apt install libpq-dev python3-dev
then
pip3 install psycopg2
Go to https://pypi.org/project/psycopg2.
In release history select the version you want to download: there will be a table with files and compatible versions of Python.
Download the binary file that matches your system configuration.
For example, for Python 3.6 on Windows 10 (64-bit) download psycopg2-2.8.6-cp36-cp36m-win_amd64.whl.

Resources