ubuntu-12.04

Setting an environment variable for play framework

空扰寡人 提交于 2019-12-13 10:41:15
问题 I have installed play framework on Ubuntu 12.4 and I want to be able to just call play from terminal without specifying it's full path. I've tried exporting the path and so on, but it does not work because for some reason, another application called play starts instead. Problem is I cannot find that application's path in the paths file. What am I doing wrong? 回答1: To find the thing that is in your path named play run: which play 回答2: I had the same problem with ubuntu 14.01. Steps i followed

Linux operating system ( Ubuntu)

会有一股神秘感。 提交于 2019-12-13 08:38:27
问题 I am tying sudo apt-get install gparted command on terminal but it is not working properly and showing this error. What could be the problem? E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? 回答1: Restarting the system should solve the problem. If the restarting doesn't help, try this link You can delete the lock file with the following command: sudo rm /var/lib

unable to open include file 'io.mac' assembly

梦想的初衷 提交于 2019-12-13 06:25:42
问题 I am using nasm assembler and 32 bit Ubuntu.When I try to execute a program,"unable to open include file 'io.mac' " error occurs.My compile commands : nasm -f elf32 fact.asm After I have searched this problem in some sites,I try : nasm -f elf32 fact.asm -l fact.lst However,error has not changed.Pls help. 回答1: If you haven't got the file, this may be it: http://www.scs.carleton.ca/sivarama/org_book/org_book_web/source_code.html If you have the file, but it isn't in the current directory, the

Error while executing hadoop-mapreduce-examples-2.2.0.jar

﹥>﹥吖頭↗ 提交于 2019-12-13 04:43:03
问题 Being a beginner to hadoop,I started to try out configuring a single node hadoop cluster in ubuntu. After installation and configuration, I worked with the example part with hadoop and it have thrown the following error hduser1@ubuntu:/usr/local/hadoop$ hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce- examples-2.2.0.jar pi 2 5 java.lang.NoSuchMethodError: org.apache.hadoop.util.ProgramDriver.run([Ljava/lang/String;)I at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)

Failed to connect to RMI registry

China☆狼群 提交于 2019-12-13 04:33:45
问题 I am running activemq-5.9 on Ubuntu 12.04 and it would be fair to say that I am new to active MQ. I suspect that I am queueing records and not de-queueing them, so I am looking into using JMX to connect to my active MQ broker and see what's going on. Jconsole fails. This is hard because most of the docs on how to do this is old, but I finally get down to running activemq list. When I do, it throws a rather lengthy stacktrace: Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099

Hadoop-1.2.1 plug-in with Eclipse indigo (3.7.2) Ubuntu 12.04 error

跟風遠走 提交于 2019-12-13 04:33:23
问题 Newbie, so please go slow. Tried to install eclipse plugin as explained here https://docs.google.com/document/d/1yuZ4IjlquPkmC1zXtCeL4GUNKT1uY1xnS_SCBJHps6A/edit?pli=1 Ended at getting the following error. At my wit's end. Can someone help please. Buildfile: /usr/local/hadoop/src/contrib/eclipse-plugin/build.xml check-contrib: init: [echo] contrib: eclipse-plugin init-contrib: ivy-download: [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar [get] To: /usr

Python MemoryError issue on Ubuntu but not on windows when running matpplotlib's specgram command

扶醉桌前 提交于 2019-12-13 03:22:57
问题 I would sincerely appreciate your assistance with the following please: I am trying to run some python code (using Ipython, Python version 2.7.3) on my on a dual booted laptop (- Ubuntu 12.04 LTS, 64 bit and MS Windows 7 64 bit). Running the code in windows works fine, but for some reason gives me memory errors in Ubuntu. I'm not sure if this is a python issue or an OS problem. I would stick with running the code on MS windows, but that has it's own issues which I'm struggling with, including

Start Jersey application with Jetty

人走茶凉 提交于 2019-12-13 02:58:45
问题 I install jetty 9 server in my Ubuntu server VCS. Structure of java rest project: /opt/jetty/webapps/backend / build conf lib libs logs src/com/example/package/backend resources CategoryResource.java BackendServer.java web WEB-INF web.xml BackendServer.java import com.sun.jersey.api.container.httpserver.HttpServerFactory; import com.sun.jersey.api.core.PackagesResourceConfig; import com.sun.net.httpserver.HttpServer; public class BackendServer { public static void main(String[] args) throws

Source file cannot find the header files

帅比萌擦擦* 提交于 2019-12-13 02:54:29
问题 I have looked at these links : This one and This and a couple of other similar ones. None of the answers given here are working methods are working. I have a two source files a1.c , a2.c and two header files a1.h and a2.h . I want to include the header files in both these files (and a2.c in a1.c as there is a function I need to use from a2.c) I have included #include "a1.h" #include "a2.h" in the source files of a1.c I'm using GCC on Ubuntu. and using the command gcc a1.h -o a1.out -lm and

remove r workspace in ubuntu

你。 提交于 2019-12-13 02:34:11
问题 folks I just installed ubuntu R, but when I saved my R work space, it loaded automatically every time when i launch R from the terminal. This had disabled couple of functions in the package i wanted to use. My questions is how to remove my r work space in ubuntu? any idea where the location of the file is ? I tried suggestions from this site: http://r.789695.n4.nabble.com/How-to-permanently-remove-Previously-saved-workspace-restored-td3041515.html , but i did not really give a clear solution