nuget command line utility package restore with mono on ubuntu - mono

I'm trying to restore packages with the nuget restore command using the nuget.exe command line utility.
I'm on Ubuntu 14.04, and have just performed apt-get update.
Calling mono --version returns:
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Here is my exact call and response:
$ mono nuget.exe restore
WARNING: The initialization function tries to access Value on this instance
WARNING: The initialization function tries to access Value on this instance
WARNING: The initialization function tries to access Value on this instance
WARNING: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
Unable to find version '2.0.14' of package 'FSharp.Data'.
Unable to find version '1.3.0.1' of package 'FsUnit'.
Unable to find version '1.3.0.1' of package 'FsUnit.Sample'.
Unable to find version '2.6.3' of package 'NUnit'.
I have tried with and without a nuget.config file in the same folder.
What's going wrong and what can I do to solve?

The problem you describe has to do with root security certificates.
Enter the following command in your terminal:
mozroots --import --sync
As per #ahri below, here is a more up-to-date answer:
mozroots --import --sync --url https://hg.mozilla.org/mozilla-central/raw-file/tip/security‌​/nss/lib/ckfw/builti‌​ns/certdata.txt
Source

Related

configure: error: package not installed, but a package with the same name is installed

Introduction
I'm trying to build a repo I recently cloned.
I've run ./autogen.sh.
I try to run:
./configure --enable-project=my-proj --prefix=${HOME}/my-dir
configure then does lots of checks and then fails with the following output:
configure: error: miglayout not installed
If I do a yum install miglayout (I'm running RHEL7), I get the following:
Package miglayout-4.2-5.el7.myproj.7.10.noarch already installed and latest version
Nothing to do
Question
What would be causing configure to not see the miglayout-4.2-5.el7.myproj.7.10.noarch package I installed as fulfilling its requirement for miglayout?

Error Installing Microsoft CNTK

During installation I received the following error:
This script will setup the CNTK prequisites and the CNTK Python
environment onto the machine. More help is given by calling 'get-help
.\install.ps1' in your powershell environment.
The script will analyse your machine and will determine which
components are required. The required components will be downloaded in
[C:\local\Scripts\windows\InstallCache] Repeated operation of this
script will reuse already downloaded components.
If required VS2012 Runtime and VS2013 Runtime will be installed
If required MSMPI will be installed
If required the standard Git tool will be installed
CNTK source will be cloned from Git into [c:\repos\CNTK]
Anaconda3 will be installed into [C:\local\Anaconda3-4.1.1-Windows-x86_64]
A CNTK-PY34 environment will be created in [C:\local\Anaconda3-4.1.1-Windows-x86_64\envs]
CNTK will be installed into the CNTK-PY34 environment
1 - I agree and want to continue Q - Quit the installation process
1 Determining Operations to perform. This will take a moment...
The following operations will be performed: * Setup/Update CNTK Wheel
* Clone CNTK from Github repository
Do you want to continue? (y/n) y Performing download operations
Download operations finished
Performing install operations Setup/Update of CNTK Wheel environment.
Please be patient.... You are using pip version 8.1.2, however version
9.0.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. Cloning CNTK (branch v2.0.beta2.0)
repository....
Fatal error during script execution!
System.InvalidOperationException: This command cannot be run due to
the error: The system cannot find the file specifie d. at
System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord
errorRecord)
PS C:\local\Scripts\windows>
I'm not familiar with powershell, so I am not sure where to go from here.
Couple of questions. Are you using beta1 or beta2?
If you are using beta1, just a reminder that there is a beta2 now available with bug fixes and also some improvements to the install script, but I don't think this particular problem has been addressed!
It looks like the clone of the cntk git repository is failing.
Was Git installed on your machine? Is there a GIT.EXE in c:\Program Files\Git\bin\?
I think the install found an existing git.exe (in a different location), and is now trying to call it at the 'wrong' location.
The easiest workaround for you (if you have git installed), from a command prompt:
cd c:/
md \repos
cd repos
clone --branch v2.0.beta1.0 --recursive https://github.com/Microsoft/CNTK
If you have moved to beta2, replace the v2.0.beta1.0 with v2.0.beta2.0

How to install Apache with PHP 7.0 on Ubuntu 16.04 using puppetlabs-apache

I moved the question to the server fault site.
I want to install Apache with PHP 7.0 on Ubuntu 16.04 using Puppet Labs Apache module.
Following the documentation the module supports Ubuntu 16.04.
There is a ticket related with PHP 7.0 support and there is an accepted merge request which should add PHP 7.0 support.
It looks like the fix provided in the merge is not included in module 1.9.0 version.
The questions are
Is there any way how I can use the suggested fix and install Apache with PHP 7.0?
What should I write in the manifest?
The following code (from Puppet manifest) does not work on Ubuntu 16.04
class { 'apache':
mpm_module => 'prefork',
}
include apache::mod::php
I've got the following error
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 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 'libapache2-mod-php5' has no installation candidate
Error: /Stage[main]/Apache::Mod::Php/Apache::Mod[php5]/Package[libapache2-mod-php5]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 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 'libapache2-mod-php5' has no installation candidate
I tried to configure FastCGI servers to handle PHP files but this fails too with almost the same error message. The module knows nothing about PHP 7.0 yet.

Configuration for Java binding for ZeroMQ (0MQ) with no root privileges on Linux

I am a novice with zeroMQ and I am stuck at binding ØMQ with java on a server running CentOS release 5.9.
Unfortunately, I do not have super user/root privileges on the server and am trying to install ØMQ as a normal user with restricted privileges. I have installed ØMQ by following instructions on http://www.zeromq.org/area:download
Make sure that libtool, autoconf, automake are installed.
Check whether uuid-dev package, uuid/e2fsprogs RPM or equivalent on your system is installed.
Unpack the .tar.gz source archive.
Run ./configure, followed by make.
Could not run the following obviously
To install ØMQ system-wide run sudo make install.
On Linux, run sudo ldconfig after installing ØMQ.
Then I attempted to install jzmq.
Cloned [git clone https://github.com/zeromq/jzmq.git]
Ran autogen.sh
Ran configure
At this point I get the following error
checking for ZeroMQ... no
checking zmq.h usability... no
checking zmq.h presence... no
checking for zmq.h... no
configure: error: cannot find zmq.h
As a result of the above error I am not able to run java tests and get error "no jzmq in java.library.path".
Can anybody help/direct me to how to get java binding for zeromq work when you dont have root privileges to install it? Its difficult to get IT department to install a new software on servers.
Appreciate your help.
Note: I do not have write permissions to /usr directory
Thanks
GBP
This can be overcome by adding --with-zeromq=/home/user/zeromq (installation directory of zeromq)
./configure --with-zeromq=/home/user/zeromq
Other steps include
export LD_LIBRARY_PATH=/home/user/zeromq/lib
You can also use JeroMQ (https://github.com/zeromq/jeromq) which is a pure Java implementation of ZeroMQ
I got this working by running autogen.sh on OEL 6 then running configure / compiling / installing on CentOS 5.9. I briefly looked into why autogen.sh was failing and the problem was the tool chain was too old. Since I had a more up-to-date system with a modern tool chain available running autogen.sh on something other than CentOS 5 was the easiest path for me. I'm sure it works fine with other modern Linux variants, I had OEL 6 at my finger tips.
I also did not have access to a standard directory for installation. To get that working I added zmq.jar to my class path, and the run-time linker needed to be able to find the zeromq and jzmq run-time libraries.
I faced the same issue on CentOS 6.5 and found that you need to install "gcc-c++" for this to work.
I used the following to install dependencies:
yum -y install jdk zeromq-devel unzip libtool gcc autoconf automake gcc-c++ python
Note that "jdk" comes from our private repository and it's same what can be downloaded from java.com
The following public repositories are installed on server:
atomic
Actually, I ended up having this same issue, and the following script worked for me, where I installed zeromq into ~ (so that I have ~/lib contains libzmq.a libzmq.la libzmq.so libzmq.so.3 libzmq.so.3.1.0 pkgconfig)
./autogen.sh ./configure --prefix=$HOME \ #because you don't have root privileges
--with-zeromq=$HOME --includedir=$HOME/include/ --libdir=$HOME/lib/
./make
./make -n install
#to check to see if it installs it to the right location
make install

Error installing ruby packages

I used the following command to run the installation
curl -L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
I then received a error
I then checked the error, and below is the log,
[2013-05-18 12:11:22] requirements_osx_port_libs_install
Error:
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.6.1
Error:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for apple-gcc42
---> Dependencies to be installed: cctools ld64 llvm-3.2 gcc_select
---> Building llvm-3.2
Error: org.macports.build for port llvm-3.2 returned: command execution failed
Error: Failed to install llvm-3.2
Please see the log file for port llvm-3.2 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.2/llvm-3.2/main.log
Error: The following dependencies were not installed: cctools ld64 llvm-3.2 gcc_select
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port apple-gcc42 failed
There were package installation errors, make sure to read the log.
I checked my xcode version (I'm still subscribed to the $99, if that means anything), and it says this
xcode-select version 2003
How do I solve the problem?
I fixed the problem. Thanks for all the comments.
I was installing rvm last night, and my internet connection got cut off. That corrupted the installation. The problem was with Xcode. I uninstalled then install again, and then re install rvm, and it worked.