Tag: ubuntu 11.04

supervisord停止subprocess

其中一个问题就是,当我有一个命令转而产生另一个进程的时候,supervisord是无法杀死它的。 例如,我有一个java进程,当正常运行就像 $ zkServer.sh start-foreground $ ps -eaf | grep zk user 30404 28280 0 09:21 pts/2 00:00:00 bash zkServer.sh start-foreground user 30413 30404 76 09:21 pts/2 00:00:10 java -Dzookeeper.something..something supervisordconfiguration文件如下所示: [program:zookeeper] command=zkServer.sh start-foreground autorestart=true stopsignal=KILL 这种有多个孩子的过程在监督方面不能很好地处理。 所以,当我从supervisord运行这个,并试图从supervisorctl停止它,只有顶级进程被杀死,但不是实际的Java进程。

linux / videodev.h:没有这样的文件或目录 – Ubuntu 11.04上的OpenCV

我试图在Ubuntu 11.04上安装OpenCV2.2。 但是OpenCV编译失败,指出与linux / videodev.h文件有关的错误。 / user / includes / linux中的文件名为videodev2.h。 /home/user/OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp:217:28: fatal error: linux/videodev.h: No such file or directory compilation terminated. make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_v4l.o] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: *** [all] Error 2 有这个解决scheme吗? 谢谢。

curl:(1)在libcurl中不支持或禁用协议https

我开始在Ubuntu 11.04上安装Rails环境。 我启动命令rvm install 1.9.2 –with-openssl-dir=/usr/local ,我总是得到以下错误: curl : (1) Protocol https not supported or disabled in libcurl 我一整天都没有得到任何东西。 有没有人遇到同样的问题?

string比较在bash中。 [[: 未find

我正在比较bash中的string。 我已经find了如何在stackoverflow上做的答案。 在脚本中,我正在使用在提到的问题中由Adam提交的代码: #!/bin/bash string='My string'; if [[ "$string" == *My* ]] then echo "It's there!"; fi needle='ys' if [[ "$string" == *"$needle"* ]]; then echo "haystack '$string' contains needle '$needle'" fi 我也尝试了从第二篇文章中可以find的ubuntuforums的方法 if [[ $var =~ regexp ]]; then #do something fi 在这两种情况下,我收到错误: [[: not found 我究竟做错了什么?

/etc/apt/sources.list“E212:无法打开文件进行写入

我正在尝试使用vi编辑器编辑sources.list,但在保存文件时出现以下错误: /etc/apt/sources.list" E212: Can't open file for writing

Python语言环境错误:不支持的语言环境设置

为什么在python中这样做会导致下面的错误: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, 'de_DE') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/locale.py", line 531, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting 这也适用于其他语言环境如fr或nl。 我使用Ubuntu 11.04。 更新:做以下没有产生任何东西: dpkg-reconfigure locales perl: warning: Setting locale failed. perl: warning: Please check that your […]