小编Eta*_*ner的帖子

试图让PyCharm工作,继续"选择没有Python解释器"

我正在尝试学习Python并决定使用PyCharm.当我尝试启动一个新项目时,我得到一个对话框,上面写着"没有选择Python解释器".它有一个下拉列表来选择一个解释器,但下拉列表是空的.

python pycharm

50
推荐指数
2
解决办法
16万
查看次数

在CentOS 6.6上安装Docker

我正在尝试在CentOS 6.6 64位版本上安装Docker.执行时

sudo yum install docker
Run Code Online (Sandbox Code Playgroud)

我明白了

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
  * base: mirrors.psychz.net
  * extras: centos-distro.cavecreek.net
  * updates: distro.ibiblio.org
No package docker available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud)

linux centos docker

20
推荐指数
3
解决办法
3万
查看次数

yum显示已安装readline但readline命令无法正常工作

yum我的系统显示已安装readline

rlwrap-0.41]$ sudo yum install readline
Loaded plugins: fastestmirror, presto, security
Loading mirror speeds from cached hostfile
.
.
.
Package readline-6.0-4.el6.x86_64 already installed and latest version
Nothing to do
Run Code Online (Sandbox Code Playgroud)

但是当我运行readline命令时,它不起作用

-bash: readline: command not found
Run Code Online (Sandbox Code Playgroud)

我认为命令二进制文件可能不在路径上所以尝试搜索它但没有运气.. !!

sudo find /usr/ -iname readline
Run Code Online (Sandbox Code Playgroud)

基本上我正在尝试安装http://freecode.com/projects/rlwrap/ ,配置失败,说没有找到readline库.

bash centos readline libreadline rlwrap

10
推荐指数
2
解决办法
1万
查看次数

rpm.spec文件中的多个tar(源文件)文件

我在linux上提出了一个集中式日志记录服务器.在这一点上,我正在努力巩固,使事情更容易加载到另一台机器上.我希望有一个RPM可以一次安装多个程序.我正在使用CentOS 7服务器.我想要打包到rpm的程序将是:

eventlog 2.12 
libdbi 0.9.0
freetds 0.91 
libdbi-drivers 0.9.0
json-c
syslog-ng 3.5.6
Run Code Online (Sandbox Code Playgroud)

我一直在做很多关于RPM的阅读,只是很难理解如何将多个源集成到一个RPM中.我安装这些的原因而不仅仅是yum安装它们是因为我需要在"./configure --enable-example"中调用配置.所以我有源在我的机器上安装了所有这些程序,然后我重新安装它们并尝试使用该文件作为源.任何能够指出我正确方向的想法或任何人都将不胜感激.

linux centos rpm centos7

10
推荐指数
1
解决办法
8620
查看次数

xvfb-run:第171行:kill:(25939) - 没有这样的过程

所有自动测试都成功运行.但xvfb问题导致Jenkins构建失败.

我在Jenkins下的ExecuteShell选项中使用了下面的commnad来在无头浏览器上运行我的测试用例

/usr/bin/xvfb-run /usr/local/apache-maven-3.3.1/bin/mvn clean test -Dbrowser=firefox 
Run Code Online (Sandbox Code Playgroud)

获得以下输出:

Results :

Tests run: 22, Failures: 0, Errors: 0, Skipped: 0


[INFO] BUILD SUCCESS

[INFO] Total time: 10:19 min

[INFO] Final Memory: 20M/47M


/usr/bin/xvfb-run: line 171: kill: (25939) - No such process

Build step 'Execute shell' marked build as failure
Run Code Online (Sandbox Code Playgroud)

正如我们在输出中看到的那样 [INFO] BUILD SUCCESS.但/usr/bin/xvfb-run: line 171: kill: (25939) - No such process导致builld失败.

有人可以为此提供一些解决方法吗?

shell maven jenkins xvfb

10
推荐指数
1
解决办法
4211
查看次数

Git远程两个分支同名不同的情况

origin/joetest
origin/JoeTest
Run Code Online (Sandbox Code Playgroud)

我有一个问题我在git中有两个远程分支,它们具有不同大小写的相同名称.

我无法弄清楚在线视觉工作室有什么待办事项我可以看到差异,但由于冲突,它无法合并它们.

visual studio和git bash中的git工具无法分辨这两种情况之间的区别,而且正在进行同步的人现在关闭了一些提交,一些提交在另一个上,一些提交在另一个上.

关于我们能做什么的任何想法?

谢谢

git bash

10
推荐指数
1
解决办法
4838
查看次数

sudoers NOPASSWD:sudo:没有tty存在且没有指定askpass程序

我添加了这样的用户:

$ adduser --system --home /no/home --no-create-home --group --disabled-password --disabled-login testuser
Run Code Online (Sandbox Code Playgroud)

将用户添加到组:

$ adduser testuser testgroup
Run Code Online (Sandbox Code Playgroud)

为sudoers添加了行(visudo):

testuser    ALL=(ALL) NOPASSWD: ALL
%testgroup         ALL=(ALL:ALL) NOPASSWD: ALL
Run Code Online (Sandbox Code Playgroud)

当我尝试使用以下内容运行bash脚本时:

#!/bin/sh
sudo -u testuser /usr/bin/php /usr/local/bin/script.php
Run Code Online (Sandbox Code Playgroud)

但是当我运行这个脚本时,我在日志中收到错误:

sudo: no tty present and no askpass program specified
Run Code Online (Sandbox Code Playgroud)

编辑:requiretty不在sudoers文件中.

linux bash sudo tty

9
推荐指数
1
解决办法
4万
查看次数

这个字体:速记属性语法有效吗?(我对规范的解读是肯定的,但我安装的浏览器中有一半不同意.)

这有效吗? font: bold 10px/13px inherit;

根据我对规格的看法,这应该意味着'粗体'的字体粗细,'继承'的字体系列,字体大小'10px',以及'13px'的行高.

它似乎在Internet Explorer 8(8.0.6001.18702)中正常工作.

它在Windows上的Safari 5.0.4(7533.20.27)中正常工作.

Opera 11.01(build 1190)和Firefox 3.6.16都记录了它的错误.

我还没有尝试过Chrome或Firefox 4.

如果这确实应该是有价值的,这个解析错误是一个已知的问题吗?

加分:

  • W3验证器还将此报告为无效.
  • 'font:bold 10px inherit;','font:bold 10px/13px;'或'font:bold 10px;' 在Firefox中正常工作.

更新

正如Adam Wagner在他的回答中指出的那样,由于CSS2.1规范的§C.3.1,我的尝试价值实际上是无效的(尽管我对该规范建议的天真读物).

css fonts

8
推荐指数
2
解决办法
2840
查看次数

GCC安装错误

我正在尝试安装GCC 4.9.0,我收到了'./configure'和'make'的错误.

我得到了以下错误 ./configure

checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
Run Code Online (Sandbox Code Playgroud)

然后我使用./configure --disable-multilib然后配置完成没有任何错误.

'make'之后; 我以跟随错误结束,我无法确定这个错误是什么

checking for suffix of object …
Run Code Online (Sandbox Code Playgroud)

linux installation gcc makefile

7
推荐指数
2
解决办法
4983
查看次数

RPM build 没有那个文件或目录

我想创建包含许多小文件的简单 RPM 文件。

[root@laptop rpm]# tree
.
??? BUILD
??? BUILDROOT
??? RPMS
??? SOURCES
?   ??? some_agent-1.0.tar.gz
??? SPECS
?   ??? kernel.spec
?   ??? kernel.spec~
??? SRPMS

6 directories, 3 files
[root@laptop rpm]# 
Run Code Online (Sandbox Code Playgroud)

我有这个规范文件:

Summary: some_agent
Name: some_agent
Version: 1.0
Release: 1
License: Apache
Group: application
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
Test 

%prep
%setup -q

%build


%install
rm -rf $RPM_BUILD_ROOT
make root=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc
agent/*
Run Code Online (Sandbox Code Playgroud)

但是当我尝试构建 RPM 包时,我收到此错误:

[root@laptop ~]$ rpmbuild -bb -v …
Run Code Online (Sandbox Code Playgroud)

linux rpm rpmbuild rpm-spec

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

linux ×5

bash ×3

centos ×3

rpm ×2

centos7 ×1

css ×1

docker ×1

fonts ×1

gcc ×1

git ×1

installation ×1

jenkins ×1

libreadline ×1

makefile ×1

maven ×1

pycharm ×1

python ×1

readline ×1

rlwrap ×1

rpm-spec ×1

rpmbuild ×1

shell ×1

sudo ×1

tty ×1

xvfb ×1