ubuntu-11.04

Why is postgresql 9.1 not working with rails 3.0? [closed]

痴心易碎 提交于 2020-01-15 08:14:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I recently upgraded to ubuntu 11.10 and whenever I run my rails server I keep getting this error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? Prior to the upgrade the database was working

forwarding packets by changing header contents(Ether, network layer) and using pcap_inject in ubuntu(C program)

南笙酒味 提交于 2020-01-15 07:11:28
问题 I want to make a C program in which one laptop(say server) is acting as a HTTP forwarder(it has access to the internet by WLAN) for another laptop(say client) and both laptops are connected to each other by LAN. Steps that I implemented are : 1) (in the child process)listen at eth1 and if destination port == 80 , then modify packet - (a) write destination ip and source port in router.txt (b) change source IP, source and destination mac addr, checksum (c) inject the modified packet in wlan1

How can I stop myself from committing to the master branch in git?

此生再无相见时 提交于 2020-01-05 07:04:13
问题 My ideal workflow would be to commit changes onto dev and only merge changes to master via git merge --no-ff dev , but occassionaly what happens is: On dev dev: git add . dev: git commit -m "Cured cancer." dev: git checkout master master: git merge --no-ff dev Writes some more code master: git commit -a -m "Did something amazing" Whops, just committed to master. If I'm lucky I realize it right away, but if I don't I can push the branch upstream with another 10 changes on top. So this ends up

Rails 3.2.3 MySQL 5.5.1 Mysql2 gem install fails with ld incompatibilities

亡梦爱人 提交于 2020-01-02 07:42:14
问题 I have a clean build system as follows Ubuntu 11.04 Rvm 1.13.5 Ruby 1.9.3p194 Rails 3.2.3 Gem 1.8.24 MySql 5.5.24-1 (installed in /usr/local) I am trying to install the mysql2 gem (0.3.11) and getting the following problem: pal@smurf01:~$ sudo gem install mysql2 [sudo] password for pal: Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for rb

How can I configure selenium webdriver to use custom firefox setup for tests?

醉酒当歌 提交于 2019-12-30 04:36:08
问题 I am using Ubuntu 11.04 and selenium 2.9.0 Here is how it is configured in my root pom: <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.9.0</version> <scope>test</scope> </dependency> When attemting to run a test, I get an exception: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: *** LOG addons.xpi: startup *** LOG addons.xpi: Ignoring file

Error running javac in Ubuntu 11.04

元气小坏坏 提交于 2019-12-24 16:44:16
问题 I'm trying to install JDK 1.7 in Ubuntu 11.04 but when I run the following command: javac -version I'm getting error below: Error: could not find libjava.so Error: Could not find Java SE Runtime Environment. here is some information about my system configuration for you in order to solve my problem: The end of /etc/profile: JDK_HOME=/usr/local/java/jdk1.7.0_04 PATH=$PATH:$HOME/bin:$JDK_HOME/bin JAVA_HOME=/usr/local/java/jre1.7.0_04 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export JDK_HOME export

compiling libc++ with clang++ in Ubuntu

我们两清 提交于 2019-12-24 09:49:39
问题 My OS is Ubuntu-11.04 i compiled llvm with clang as per the user manual successfully. then i tried to compile libcxx with clang++, i made modifications to the $LIBCXX_DIR/lib/buildit.sh by reading the following http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013228.html The modified file $LIBCXX_DIR/lib/buildit is pasted after the error message. with the modified buildit.sh i get following errors. It seems clang++ is unable to compile the header file 'string' successfully. Here is

Ubuntu 11.04: `apt-get install rake` -> “E: Unable to locate package rake”

时光毁灭记忆、已成空白 提交于 2019-12-24 03:03:48
问题 This is probably a type of "is it plugged in?" question, but after getting a default Rackspace image of Ubuntu 11.04 up. Running command (as root) apt-get install rake Fails with error Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package rake I'm missing something simple I'm sure. 回答1: It appears that rake package is not in the 11.04 sources, but it is in 10.10 sources. To get apt-get install rake to work on 11.04: Add the

Can't get Microsoft.VisualBasic.dll for Mono 2.10

丶灬走出姿态 提交于 2019-12-23 05:49:13
问题 I've been trying to port a .NET library built on/for Windows to Ubuntu 11.04 using Mono. The library uses .NET 4.0 so the version of mono (2.6.7) that is standard with Ubuntu 11.04 doesn't cut it. Specifically, I'm trying to use Microsoft.VisualBasic.Devices.Computer.Info.TotalPhysicalMemory. I've searched high and low for packages or parallel build scripts that install Microsoft.VisualBasic.dll, but none of them do. Ideally I'd like to find a way to get the best of both worlds, Mono with

MongoDB is not installed properly on Ubuntu 11.04 in Amazon EC2

匆匆过客 提交于 2019-12-23 03:24:29
问题 I'm trying to install MongoDB on my Ubuntu 11.04 AMI in Amazon EC2. I allowed 27017 port in security option. The problem is that I can use "mongo OTHER IP ADDRESS" to access to other mongoDB. But simply "mongo" does not simply give me access to localhost mongoDB. mongoDB shell shows like it is about to work but it stops at MongoDB shell version: 1.8.3 connecting to: test If it is truly connected, it should give me ">" but it doesn't and freezes. I couldn't find answer on freezing problem by