我正在尝试按照以下说明安装PostGIS:
wget http://postgis.refractions.net/download/postgis-1.5.2.tar.gz
tar zxvf postgis-1.5.2.tar.gz && cd postgis-1.5.2/
sudo ./configure && make && sudo checkinstall --pkgname postgis-1.5.2 --pkgversion 1.5.2-src --default
Run Code Online (Sandbox Code Playgroud)
但它没有通过"sudo ./configure"命令.它说的最后一行:
configure: error: could not find pg_config within the current path. You may need to try re-running configure with a --with-pgconfig parameter.
Run Code Online (Sandbox Code Playgroud)
所以我在网上找到了一个地方,上面写着这样的话:
--with-pgconfig = FILE PostgreSQL提供了一个名为pg_config的实用程序,可以使PostGIS等扩展程序找到PostgreSQL安装目录.使用此参数(--with-pgconfig =/path/to/pg_config)手动指定PostGIS将构建的特定PostgreSQL安装.
我使用"whereis pg_config"搜索pg_config但我找不到它.它是指"/etc/postgresql/9.0/main/pg_hba.conf"文件还是文件夹....?我错过了什么吗?我在这一点上真的很困惑.我想真正的混乱比虚假清晰:).
我正在使用PostgreSQL 9/Ubuntu 10.10.任何帮助将不胜感激.
我使用httperf运行负载测试几周并收到此错误 -
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
when I fire query from OS - Ubuntu 12.04 LTS (64 bit machine).
Run Code Online (Sandbox Code Playgroud)
但是,如果我从具有OS的32位机器上运行相同的命令 - 10.04 LTS; 我没有收到错误消息.
此外,我确实按照其他帖子尝试使用"ulimit -n"命令增加文件描述符大小限制,并尝试使用
/usr/include/bits/typesizes.h
Run Code Online (Sandbox Code Playgroud)
#define __FD_SETSIZE 65535
但方法失败了.
有人可以建议吗?
观察:
无需在32台机器上进行任何更改(使用Ubuntu 10.10),那么Ubuntu 12.04的真正区别是什么?此外,我尝试了不同的机器(所有64位架构都有相同的问题)
在我对Ubuntu 10.10 Maverick Meerkat进行新升级时,我无法识别我的HTC Desire.
adb设备显示
List of devices attached
???????????? no permissions
Run Code Online (Sandbox Code Playgroud)
现在,有很多关于在/etc/udev/rules.d/下更改规则文件的教程.但是,我找不到10.10的具体内容.
任何人都可以告诉我规则文件名和内容是否与链接文本中描述的相同,或者我们是否正在查看此新版本的一些新设置?
非常感谢
$ sudo pip install bottle
Downloading/unpacking bottle
Downloading bottle-0.10.7.tar.gz (55Kb): 55Kb downloaded
Running setup.py egg_info for package bottle
Installing collected packages: bottle
Found existing installation: bottle 0.10.7
Uninstalling bottle:
Successfully uninstalled bottle
Running setup.py install for bottle
changing mode of build/scripts-2.6/bottle.py from 640 to 755
changing mode of /usr/local/bin/bottle.py to 755
Successfully installed bottle
>>> help('modules')
blahblah
bottle
blahblah
$ ls /usr/local/lib/python2.6/dist-packages/
bottle-0.10.7.egg-info bottle.py bottle.pyc
Run Code Online (Sandbox Code Playgroud)
但
$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type …
Run Code Online (Sandbox Code Playgroud) 我正在使用ubuntu 10.10尝试安装libevent开发库libevent1和libevent2.我用下面的命令 -
apt-get install libevent-dev libevent1-dev
But it shows-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libevent1-dev
Run Code Online (Sandbox Code Playgroud)
然后我用 - apt-get install libevent-dev
但它说libevent-dev已经是最新版本了.那是libevent2吗?我是root用户.我做错了吗?ubuntu 10.10是否支持libevent2?非常感谢您的帮助.谢谢
我是编程和Ruby on Rails的新手.设置我的开发环境一直很糟糕.我目前的问题是安装Sqlite 3.
当我做
$ bundle install
Run Code Online (Sandbox Code Playgroud)
我明白了
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.1)
Using builder (2.1.2)
Using i18n (0.4.2)
Using activemodel (3.0.1)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.7)
Using tzinfo (0.3.24)
Using actionpack (3.0.1)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.15)
Using actionmailer (3.0.1)
Using arel (1.0.1)
Using activerecord (3.0.1)
Using activeresource (3.0.1)
Using bundler (1.0.10)
Using thor (0.14.6) …
Run Code Online (Sandbox Code Playgroud) 当我尝试在rails项目上运行ruby时出现错误:
An error occurred while installing nokogiri (1.5.2), and bundle cannot continue.
Make sure that 'gem install nokogiri -v 1.5.2 succeed before building.
Run Code Online (Sandbox Code Playgroud)
我正在研究Ubuntu 10.10
我的同事在Windows/RVM上使用并没有这个问题.
编辑:
/opt/bitnami/ruby/bin/ruby extconf.rb
extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
-----
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed *** …
Run Code Online (Sandbox Code Playgroud) 我找到了几个关于同样问题的类似帖子,但这里没有一个解决方案似乎适用.
在新的Ubuntu 10.10安装上,我按照安装RVM的说明进行操作:
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
Run Code Online (Sandbox Code Playgroud)
然后我创建.bash_profile并添加以下行:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
Run Code Online (Sandbox Code Playgroud)
我重新启动终端并检查RVM:
$ type rvm | head -1
-bash: type: rvm: not found
Run Code Online (Sandbox Code Playgroud)
正如RVM安装指南所解释的那样,我将.bashrc中的第一行(下面)替换为第二行,然后在文件的其余部分中缩进所有内容并添加了一个fi.
[ -z "$PS1" ] && return # original
if [[ -n "$PS1" ]]; then # replaced with this
Run Code Online (Sandbox Code Playgroud)
重启终端仍然没有运气.
然后,我删除了我在开头添加到.bash_profile的行,并将其添加到.bashrc,即使这不是指南所说的.不过,没有运气.我也直接在命令行输入它,行为没有变化.当我从〜/ .rvm/bin/rvm运行.rvm时,它抱怨没有像/.rvm/scripts/rvm这样的文件或目录,并且该命令不是资金.
当然,./rvm中也没有任何这样的"脚本"目录 - 所以我不确定它为什么要找一个?.rvm中唯一的目录是
archives
bin
config
gems
gemsets
log
man
rubies
src
tmp
user
Run Code Online (Sandbox Code Playgroud)
我在google搜索答案时发现的唯一一件事就是其他人抱怨类似的问题,人们告诉他们将指示行添加到.bash_profile(我显然已经这样做了).在这一点上,我没有更多的事情可以继续下去,陷入僵局.
问候.
解决方案: 正如Andrew Marshall在下面的评论中所说,我做了一个'rm -rf .rvm'并重新安装了rvm.在发布之前,我实际上已尝试了两次,每次都有相同的结果.安装日志中没有奇怪的消息,但是没有/ scripts /目录.就这样我可以说我有,我在安德鲁的催促下第三次这样做了.这一次,我检查了/ scripts /目录.运行'type rvm …
我是ubuntu的新手,并且在网站上安装了rubymine,安装后我没有找到任何应用程序快捷方式或新文件,所以现在我正在运行使用我写的安装它的相同脚本,而我真的不喜欢它,文件在我的下载文件夹中.
该怎么办?
首先,已经有类似的问题,但这些答案没有帮助.
正如在主题中已经提到的,我想在代码辅助中修改非活动行的颜色(不改变其他区域),因为几乎看不到浅灰色背景上的白色.
"颜色和字体"只包含"内容辅助前景/背景颜色",这只会更改整个代码辅助的前景/背景,而不会更改活动或非活动行的前景/背景.似乎没有这个选项.是否有可能以不同的方式改变它,可能是某种样式表?
ubuntu-10.10 ×10
ubuntu ×4
ruby ×2
adb ×1
android ×1
bottle ×1
code-assist ×1
colors ×1
eclipse ×1
httperf ×1
install ×1
installation ×1
libevent ×1
nokogiri ×1
postgis ×1
postgresql ×1
python ×1
rvm ×1
sqlite ×1
ubuntu-12.04 ×1