Reinstall conan requires from conanfile.py - conan

Can I somehow automatically specify in conanfile.py install the required package even if it is already installed?
If I do conan install <package> with my hands, then it will install it, even if it was installed before. But in conanfile.py it just writes ": Already installed!" and goes on.
This may conan create <package> --<param>, but it would be better if it was written in the recipe itself.
Thanks in advance

Related

rpm build with local Required: some_local_package.rpm

Requires: in the spec files sets the package dependencies, but what will happen if the repo of the requirements is not in the repolist?
Is there a way to use pre downloaded rpm files and tell the rpmbuild that the dependencies should be installed from the local file like yum localinstall.
You're conflating rpm and yum when you mention repolist.
rpm is a lower level and only knows about RPM files
yum collects sets of RPMs into repositories and sits on top of RPM to handle dependencies
Now, to answer the question - rpmbuild does not need anything from the Requires field to build the RPM. If it does, then the RPMs should be listed as BuildRequires in the specfile and only be in Requires if the end user needs it to be installed to run the final product. For example, to build you might need foo-devel but at runtime you only need libfoo. Those should be declared appropriately.
Even if you fix the Requires vs. BuildRequires fields, it still won't help you - rpmbuild cannot install RPMs itself because you should never run rpmbuild as root. An error in a specfile can very easily nuke an entire machine if it's run as root.

XRlibrary is locked by another concurrent conan process, wait... in c++

While building my solution in VS, am getting conan lock error in c++
1> XRLibrary/0.1#Xerox/XRLibrary is locked by another concurrent conan process, wait...
1> If not the case, quit, and do 'conan remove --locks'
9> perfmon.cpp
Just had the same problem with installing Sentry.io's packages. I did it on Windows, steps might be similar for Linux as well.
Make sure you have the latest version of Conan. Typically you can run the following (if conan was installed using pip):
pip install --upgrade conan
You can do the following next:
Remove directory /c/Users/TestUser/.conan/data/<some-package> (Here the some-package might be XRLibrary)
Rerun your conan install command.
If you are a mac user, just remove ~/.conan/data. That works for me.

How to install conan and use it?

Check if Conan is not installed correctly.install failed,The initial installation is through the PIP installation
1、pip install conan
2、conan
An error occurs at step 2(windows 7)
failed create aprocess
There is a good page in Conan docs about installation.
The recommended way is using pip
If you are running Windows, please read carefully the notes in installation page.
Anyway, your problem is listed in troubleshooting page, where there is an explanation how to solve it.
Regards

Can I use phantomJS on Azure app service for linux?

I'm getting a consistent error when trying to use the html-pdf package in my node application:
StatusError: Error: spawn /home/site/wwwroot/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT
As far as I can tell everything is installed correctly and the npm install works as expected. My suspicion is that there is some missing dependency in the built-in linux image, but I'm not sure how to confirm that.
According to the information comes from the Download PhantomJS page, there is two note for Linux Distributions as below.
Note: For this static build, the binary is self-contained. There is no requirement to install Qt, WebKit, or any other libraries. It however still relies on Fontconfig (the package fontconfig or libfontconfig, depending on the distribution). The system must have GLIBCXX_3.4.9 and GLIBC_2.7.
So the native package fontconfig or libfontconfig must have been installed in docker image first.
For Debian/Ubuntu system, you can add RUN apt install fontconfig in the docker file, and check the package installed whether be exists via the command dpkg -l|grep fontconfig.
For Fedora/CentOS system, add RUN yum install -y fontconfig, and check the installed on via yum list installed|grep fontconfig.

How do I get the man command?

I just installed Windows Subsystem for Linux for the first time and downloaded the Debian distribution from the Windows Store.
The first thing I tried to do was use the "mv" command. The second thing was to run "man mv" because I don't remember how to use it. But I received the error:
-bash: man: command not found
It looks like the package I want is called manpages. But I can't install that:
sudo apt-get install manpages
[sudo] password for pi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package manpages is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'manpages' has no installation candidate
How do I get the man command up and running?
apt update to update the local package lists followed by apt install man-db to install the actual package.
I want to add to elken's answer that apparently, the 'man-db' packages doesn't cover all the manpages. For example, I needed documentation for the C stdio library (fopen, fgets, ...), and for that I had to install 'manpages-dev':
sudo apt install manpages-dev
Apparently there are also some other manpage collections (/different names for them on certain unix distros), see https://superuser.com/questions/40609/how-to-install-man-pages-for-c-standard-library-functions-in-ubuntu