packages

How does one easily add posix support to PHP using yum?

旧时模样 提交于 2020-01-02 00:14:08
问题 I am running CentOS 5.2 and using yum to manage packages. I have had little luck installing php-posix but know with almost 100% certitude that it is a real and available package...somewhere. Has anyone had luck installing it? FWIW, I am using the following: sudo yum install -y php-posix Update: I've realized that this may be an issue with my host (Slicehost) as I do in fact have cli, posix, and pcntl enabled for my PHP version (5.2.9) 回答1: You can try and see if it's in the testing repository

Reinstall python 2.7.12 and python 3.5.2

こ雲淡風輕ζ 提交于 2020-01-01 18:18:34
问题 Good evening, today i messed up my laptop trying to install some packages for python 3.5.2. I tried to install the correct pip version but i missed something and now i can't install any package in both versions and i can't solve the problem. Is it possible to unistall the 2 versions (including all packages) and reinstall everything? I don't use Python 2.7.12 (but i'l like to have a clean version of it), i need python 3.5.2 with the correct pip version to install, for example, the packages

How to compile golang program with .a file (without source)

做~自己de王妃 提交于 2020-01-01 18:18:09
问题 I need to compile my program - main.go with package bigPak without source. Exist only bigPak.a tnto GOPATH/pkg. Can you give me example of compile main.go with bigPak.a ? 回答1: That's dead simple: Just produce a fake bigPak package in the right $GOPATH/src location (an empty package bigPak will do) and ( important !!) make sure this synthetic source has a modification time before the modification time of bigPak.a. The go tool should just work like this. Go is designed to be able to compile

When I do pip --version it show the error as ImportError: No module named pyparsing

余生颓废 提交于 2020-01-01 09:04:54
问题 I tried installing/uninstalling pyparsing as well and it does not work. I am stuck with this and I have to install additional libraries as well. Here is the error message: Traceback (most recent call last): File "/usr/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/home/rachana/.local/lib/python2.7/site-packages/pkg_resour‌​ces/__init__.py", line 72, in <module> import packaging.requirements File "/home/rachana/.local/lib/python2.7/site-packages/packaging/‌

Resolving package conflict

天涯浪子 提交于 2019-12-31 04:34:05
问题 Suppose we have a package called com.example1 containing a Hello class (along with other classes). Then we have another package com.example2 also containing a Hello class (obviously with different behaviour). Now let's suppose we need every class in com.example1 and the Hello class in com.example2 import com.example1.*; import com.example2.Hello; Which one gets called in this case? Hello hello = new Hello(); Or does this give a compile error? This is just a theoretical question out of

Correct import and package structure now that __init__.py is optional

﹥>﹥吖頭↗ 提交于 2019-12-31 03:09:05
问题 I'm building a package that contains scripts to be run. They import modules contained in a subfolder directly under the script. Now that __init__ is not required after Python 3.3, what's the correct file structure and import statement to have? I'd like to not have to specify the import from the topmost folder down, only as a relative path, here sub/module . This is the current state of the file structure: Root\ src\ sub\ module.py script.py parent_module.py setup.py # Inside script.py import

Installing packages on Microsoft R Open fails

允我心安 提交于 2019-12-31 01:25:18
问题 I've never had any issues installing packages on R, but I always have issues installing packages on Microsoft R Open. For example, I attempted to install tidyverse. I received many errors, listed below: > Warning in system(cmd) : error in running command ERROR: compilation > failed for package ‘colorspace’ > * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/colorspace’ > Warning in install.packages : installation of package ‘colorspace’ > had non-zero exit status > * installing

Installing packages on Microsoft R Open fails

旧城冷巷雨未停 提交于 2019-12-31 01:25:07
问题 I've never had any issues installing packages on R, but I always have issues installing packages on Microsoft R Open. For example, I attempted to install tidyverse. I received many errors, listed below: > Warning in system(cmd) : error in running command ERROR: compilation > failed for package ‘colorspace’ > * removing ‘/home/myFilePath/R/x86_64-pc-linux-gnu-library/3.5/colorspace’ > Warning in install.packages : installation of package ‘colorspace’ > had non-zero exit status > * installing

Pip regular expression search

淺唱寂寞╮ 提交于 2019-12-30 17:30:26
问题 I need to find all packages on PyPI that match a particular regular expression: ^django-.*?admin.*$ Basically, the package name should start with django- and have admin word after. For example, the following packages should match: django-redis-admin django-admin-ckeditor django-admintools-bootstrap I can do pip search django- , but there is a huge amount of packages that I'm not interested in. Does pip provide a way to find packages by a regex? Or, should I just pipe the results of django- to

Using inst/extdata with vignette during package checking R 2.14.0

夙愿已清 提交于 2019-12-30 07:08:12
问题 I have a package which contains a csv file which I put in inst/extdata per R-exts. This file is needed for the vignette. If I Sweave the vignette directly, all works well. When I run R --vanilla CMD check however, the check process can't find the file. I know it has been moved into an .Rcheck directory during checking and this is probably part of the problem. But I don't know how to set it up so both direct Sweave and vignette building/checking works. The vignette contains a line like this: