I have been trying to get this running for the past couple of days now. I have a gstreamer command that requires x264enc. I am running a Mac I cannot seem to get x264 development libraries installed. I have installed gst-plugins-bad but that does not help. I read in forums I need to install x264 libraries first before installing gst-plugins-bad
I also tried VideoLAN's http://www.videolan.org/developers/x264.html That did not help either. I don't know what I'm missing. If it was Linux I could install the x264-devel packages. But I can't seem to find an alternative to that on Mac El Capitan.
The error I get is:
WARNING: erroneous pipeline: no element "x264enc"
Please help.
Try:
brew install gst-plugins-ugly --with-x264
x264enc is in gst-plugins-ugly, have you installed that? Homebrew is a popular package manager for macOS, installing gstreamer and x264 using that may be helpful also.
Build all module of GStreamer in follows sequence:
(1) Gstreamer-1.0
(2) gst-libav-1.8.3
(3) gst-plugins-base-1.8.3
(4) gst-plugins-good-1.8.3
(5) gst-plugins-bad-1.8.3
(6) gst-plugins-ugly-1.8.3
Set below path :
export PATH=$PATH:<install_dir_path>/bin
export LD_LIBRARY_PATH=<install_dir_path>/lib
export GST_PLUGIN_PATH=<install_dir_path>/lib/gstreamer-1.0
# building gst-plugins-ugly
export version=1.14.5
echo "building gst-plugins-ugly-$version"
cd $PROJECT_DIR/gst-plugins-ugly-$version
./autogen.sh
./configure --with-x264-libraries=/usr/lib/x86_64-linux-gnu/libx264.so
make -j8
sudo make install
Shot answer
For me, it started working after I installed ugly package. I use Ubuntu, my install command is:
sudo apt install -y gstreamer1.0-plugins-ugly
Similar case with solution
I had the similar issue with Ubuntu 22.04. But my first missing package was qtdemux. Originally I followed #brendan-shanks's answer (it worked) and on another machine tried #pooja's answer.
My command looks like this:
gst-launch-1.0 -v filesrc location="/home/ubuntu/countdown_10_min.mp4" ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=127.0.0.1 port=8004
Following #pooja's solution I'v run several commands before it started working:
sudo apt install -y gstreamer1.0-plugins-base
sudo apt install -y gstreamer1.0-libav
sudo apt install -y gstreamer1.0-plugins-ugly
sudo apt install -y gstreamer1.0-plugins-bad
I don't know if qtdemux is in plugins-bad but only after that I was able to run my stream.
So, in similar case I would check packages #pooja have mentioned. For Ubuntu they are:
sudo apt install -y gstreamer1.0-tools
sudo apt install -y gstreamer1.0-libav
sudo apt install -y gstreamer1.0-plugins-base
sudo apt install -y gstreamer1.0-plugins-good
sudo apt install -y gstreamer1.0-plugins-bad
sudo apt install -y gstreamer1.0-plugins-ugly
Related
First, I'm so sorry to my english, not perfect.
I was faced with problem while testing a .sh file.
That because of error Nothing to do..
That phrase is the phrase that appeared when executing yum -y install perl-CPAN, but before that, yum -y groupinstall 'Development Tools' worked normally.
And It was successful when I typed it directly instead of yum -y install perl-CPAN.
I tried solutions like below but the result was the same.
Edit and Install
# cd /etc/yum.repos.d
# vi CentOS-Base.repo
Enable =0 -> 1
# yum install epel-release
# ./setup.sh
ps : Many people have recommended this solutions.
Check
check already install
check the correct install repository
Thanks to read my situation, and have a nice day.
Although I do not know what setup.sh you are refering to is, yum says Nothing to do. if you have the package already installed. To check if you have the package installed, you can use rpm. If the package is not installed, it will give you:
# rpm -q perl-CPAN
package perl-CPAN is not installed
Then if you install the package, e.g. with:
# yum -y install perl-CPAN
[...]
Complete!
Then you can verify package is installed:
# rpm -q perl-CPAN
perl-CPAN-2.28-5.fc33.noarch
Note I have tested on Fedora 33, but there should not be much difference to CentOS in this regards.
I have a little problem to install Wine on my alpine image.
Here is my Dockerfile :
RUN dpkg --add-architecture i386 && sudo apt-get update
RUN sudo apt-get install software-properties-common python-software-properties
RUN sudo add-apt-repository ppa:ubuntu-wine/ppa
RUN sudo apt-get update
RUN sudo apt-get install wine1.8 winetricks
RUN sudo apt-get purge software-properties-common python-software-properties
RUN rm -rf /tmp/* /var/lib/apt/lists/* /root/.cache/*
CMD /bin/bash;
All seems to work well, but during the sudo apt-get install wine1.8 winetricks I have this EULA screen :
Of course I don't have the right to write "YES". I tried :
RUN echo "yes" | sudo apt-get install wine1.8 winetricks
RUN sudo apt-get -y install wine1.8 winetricks
What can I do ?
Note: In the interest of edification, I would love it if a more learned linux/docker user could explain the mechanics behind why my solution worked for me.
Possible Solution:
I encountered this exact problem. I must have tried every conceivable way to pass an argument via my Dockerfile that would accept the EULA; to include piping an echo of "yes" to the wine installation command, as you've tried, setting environment variables and so-on. So, you're not alone here. I did, however, find a very simple solution through experimentation.
It turns out that if you install the TrueType core fonts (the package the EULA is for) before installing wine, you can pass it the "yes" input like so and wine will never prompt for the EULA:
RUN echo "yes" | apt install ttf-mscorefonts-installer -y
I'm not sure why this is. I suspect that it's because installing wine installs several other packages/dependencies in the process, and the echo/pipe approach does not extend to all packages that wine attempts to install. Perhaps by installing the fonts separately, the wine installation script either disregards the package because it's already present, or some file within the font installation logs the EULA acceptance response.
Here's the contents of my Dockerfile. I'm on Ubuntu 16.04 LTS, using Docker version 18.02.0-ce, build fc4de44:
FROM ubuntu:16.04
RUN dpkg --add-architecture i386
RUN apt-get update -y
RUN echo "yes" | apt install ttf-mscorefonts-installer -y
RUN apt-get install wine -y
I see it's four months since this post was made, but if you haven't found a solution, I hope this helps!
So I've been trying for two days to unsuccessfully install build-essential on a Mac OS X Sierra with brew and apt-get. Researching into the issue has given me some results but nothing that has yielded any results.
sudo apt-get update
Reading Package Lists... Done
Building Dependency Tree... Done
Being lazy I've also listed below the other packages I'm struggling to install and their respective errors below.
sudo apt-get install -y build-essential
E: Couldn't find package build-essential
E: Couldn't find package libfreetype6-dev
E: Couldn't find package automake
E: Couldn't find package postgresql-9.5
Theres been a couple of suggestions to edit the source list of apt-get but I can't seem to find it.
What on Earth are you doing? macOS doesn't use apt-get - at all. It doesn't come with a package manager.
There are independent package management tools, to my mind the best of them is homebrew from here. Some folks use MacPorts.
Before you can do any development in macOS, you need Xcode's command-line tools - see here.
If you want Postgresql, I suggest you go to the homebrew website above, copy the one-line install and paste it into Terminal. Once you have that set up, you can install Postgresql with:
brew install postgresql
If you want to search for package abcXYZnnn, just search for any part of that name:
brew search XYZ
If you want to do updates, and upgrades:
brew update && brew upgrade
If you want to remove a package:
brew rm PACKAGENAME
You can use Homebrew:
brew install gcc binutils bison
I tried to follow this tutorial.
This is what I did in the console:
pip3 install --user --upgrade awscli
after that, when I write:
pip3 --version
I'm getting:
pip 9.0.1 from /Users/user/Library/Python/3.4/lib/python/site-packages (python 3.4)
then I wrote:
pip3 install --user --upgrade awscli
this command downloaded awscli and automatically added this:
# Setting PATH for Python 3.4
# The orginal version is saved in .profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
to my .profile
Later on, just to be sure, I wrote:
source ~/.profile
and then when I type:
user$ aws
-bash: aws: command not found
I restarted the terminal with no luck also.
What's the problem here?
Here are the two steps to install AWS cli on mac OSX
FIRST
Offical version
brew install awscli
SECOND
Development version
brew install awscli --HEAD
When "pip3 install" is called with the "--user" option, it installs the aws executable in a user-specific location. This can be one of many possible locations, but the best way to find out where is with this command:
python3 -m site --user-base
On my system, this returned:
/Users/[myusername]/Library/Python/3.6
This directory has a "bin" subdirectory, and that is where the "aws" executable was located.
I figured this out from following:
pip3 install --help
https://docs.python.org/3/library/site.html#module-contents
Simple do these three steps:
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
brew install awscli should work
This is what worked for me, I experienced permission issues and had to create a local Frameworks folder first before running brew install. using macOS High Sierra
sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks
brew install awscli
To answer the original question about installing using pip:
sudo pip install --upgrade pip
sudo easy_install nose
sudo easy_install tornado
sudo easy_install six
sudo pip install --ignore-installed awscli
worked for me on Mojave
I had similar error, when trying to install awscli. I was following steps mentioned here by amazon [https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html]
I use anaconda, so when I was using pip3 install awscli --upgrade --user
it installs awscli in /Users/username/.local/lib/python3.6/
So, I used following to update awscli to anaconda-
conda install -c conda-forge awscli
I have used the following commands to install awscli :
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ ./awscli-bundle/install -b ~/bin/aws
check version using : /Users/xxx/bin/aws --version
configure using : /Users/xxx/bin/aws configure
Was facing a similar issue. Resolved it by installing python 3.9 using brew install.
brew install python#3.9
Then reinstall awscli
I followed the below steps and it works for MacOS 10.11
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Unzip the package.
unzip awscli-bundle.zip
And instead of given command:
'sudo /usr/local/bin/python2.7 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws'
which is broken due to pip, I think, I used the below command and it worked for me.
python3.6 ./awscli-bundle/install -b ~/bin/aws
everyone. I'm try to used Dask with Distributed + HDFS for processing some files. when I installed the distributed try to install the HDFS3 plugins, the error was :
Can not find the shared library:libhdfs3.so
My environment is Ubuntu 16 Desktop version. I strict according to bewlo, but still not working. Hope someone can help! Thanks a lot
conda install hdfs3 -c conda-forge
echo "deb https://dl.bintray.com/wangzw/deb trusty contrib" | sudo tee /etc/apt/sources.list.d/bintray-wangzw-deb.list
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install libhdfs3 libhdfs3-dev
pip install hdfs3
If you are not using conda and you are using pip, you can also face this error
Can not find the shared library:libhdfs3.so
To ensure requirements in this page https://github.com/ContinuumIO/libhdfs3-downstream/tree/master/libhdfs3
solved my problem.
There are packages that you should install, if you are installing with pip:
cmake (2.8+) http://www.cmake.org/
boost (tested on 1.53+) http://www.boost.org/
google protobuf http://code.google.com/p/protobuf/
libxml2 http://www.xmlsoft.org/
kerberos http://web.mit.edu/kerberos/
libuuid http://sourceforge.net/projects/libuuid/
libgsasl http://www.gnu.org/software/gsasl/ (need https://github.com/bdrosen96/libgsasl)
openssl https://www.openssl.org/
P.S.: OS: Centos7
Since no one answers this question and I figure out the solution by myself , at least it works for me.
conda install libhdfs3
pip install libhdfs3
conda install -c clinicalgraphics libgcrypt11
conda install libprotobuf=2.5
conda update libhdfs3
if still not work try to update.