I installed clojure and clojure contrib manually, through homebrew and mac ports all of them gives me this error.
I can get other parts to work.
What gives?
edit
this question seems similar
Can not get clojure-contrib to load - FileNotFoundException
However i can load some parts, and i install through ports/brew so the versions should be in sync
It's better to use clojure & clojure-contrib not directly, but through some project, for example, managed by leiningen - it will fetch correct versions of clojure & clojure-contrib, plus some other dependencies that you're specify. You can also look onto my Lein introduction article on this topic
Well I couldn't make it work through fiddling with jars or using macport or homebrew.
But leiningen solved the problem for me.
To see the solution i came up with see:
https://github.com/khebbie/PET
also this article helped a lot:
http://pragprog.com/magazines/2011-07/create-unix-services-with-clojure
Related
I've been learning Clojure for around a month now and I've decided to experiment with Datomic. I'm following the tutorial on the site exactly, but I can't even get past the first tutorial page (http://docs.datomic.com/first-db.html) because I get the following error on run:
run -m datomic.peer-server -p 8998 -a myaccesskey,mysecret -d firstdb,datomic:mem://firstdb
The system cannot find the path specified.
Error: Could not find or load main class clojure.main
I think this is just a classpath issue (I only picked up Java to work with Clojure), but looking at run.bat I think Datomic is set up to determine classpaths automatically, and I'd rather understand why it doesn't work out of the box (presumably a config issue on my machine, although I've tried another).
I've tried the latest version (0.9.5544) as well as the version explicitly mentioned in the tutorial (0.9.5530), as well as installing via Maven. Tried numerous other tutorials and forum-searches as well - plenty of general classpath advice, but nothing relevant to this. Please, send help!
Tom
Update - I seem to have resolved my issue. The instructions on the Datomic tutorial page appear to be incorrect (they say bin/run, but bin\run works). I worked around the bin/run error by running directly from the bin folder, but this obviously had the knock-on effect of making any relative paths incorrect.
I suspect I'm not great at Stack Exchange since I seem to have answered all of my own questions so far, but I hope someone else finds this useful!
I am new to the use of typesafe-activator.
I installed it using homebrew on my Mac and tried out the hello-akka tutorial.
Following said tutorial, at the end there is a section about Inspecting the App, for monitoring actor status and other things.
Now I can't seem to find the option to inspect the app in my activator web client (as shown in the image below), while googling for the problem hasn't given me any results.
Now the question is: do I need to install some plugin or something, or the homebrew version of activator is missing some functionalities?
It looks like they have decided to discontinue it:
https://github.com/typesafehub/activator/issues/1067
I've tried to install Leiningen according to the official installation instructions. When running lein repl I get the following error message:
/usr/local/bin/lein: line 315: java: command not found
This leads me to believe that Leiningen requires a JDK/JRE to actually run but there is no mention of it in the docs. So, do I first need to install a JDK/JRE?
Yes, see installation instruction https://github.com/technomancy/leiningen#installation
Yes, you need to install JDK first.
Instruction for Windows installation is here
Leinengen comes packaged as a JAR file with a small bash script wrapping it, allowing for easy command line usage. This means that, like any other clojure or java program, it require the JVM to be run.
If you take a look at ~/.lein/self-installs/ you will see the JAR file(s) leiningen utilizes to run it's tasks.
One thing worthy of noting as well is that Leiningen starts its own JVM process before creating a new JVM process for your clojure program. They are not run in the same JVM container (to enforce isolation). Also, this initial Leiningen JVM process will not close until your clojure program has finished running as well (unless you utilize the trampoline).
As always, it's worth reading through the Leiningen docs at some point to better learn about what leiningen is truly doing. Hopefully that helps... happy coding!
I was going through this tutorial
http://wiki.jetbrains.net/intellij/Getting_started_with_La_Clojure and I got stuck here
http://wiki.jetbrains.net/intellij/Getting_started_with_La_Clojure#Opening_project_in_IntelliJ_IDEA. I don't know way but 'open project' dialog does show the file 'project.clj'. So I'm not able open the clojure project. (And also I don't know how to create new one)
Is this bug of IDEA/La clojure or I did something wrong?
To open/import clj projects, you need to have the Leiningen plugin installed.
Unfortunately, the latest official release of the lein plugin for intellij doesn't work well with Intellij13 (crashed my idea on load every time until removed manually).
I'm guessing that because of Cursive there wasn't a newer release even though the latest version of the plugin on github does work.
I followed the instructions on the lein plugin's git page to create a plugin bundle from the latest version: https://github.com/derkork/intellij-leiningen-plugin
Assuming you're using Intellij13, creating the bundle yourself and then installing it from disk will enable you to open clj project files.
I just don't seem to be able to get OpenCV to work properly. Here's what I want to accomplish:
Use CodeBlocks (which I installed using codeblocks-10.05mingw-setup.exe) with OpenCV (installer: OpenCV-2.4.2.exe) on my Windows x64.
I've tried a lot of different configurations which will only bother you if I posted them all, so I hope you don't mind if I just ask the simple question: how do I get this to work?
I think I'm missing the smallest detail right now, so a detailed description of how to get started would be welcome.
If the OpenCV installer did the job, you should have by now OpenCV libraries and headers already installed in your system.
I would then go ahead and try to compile a hello world basic code, like the one you can get from here. If you would like to program using an IDE, like VisualC++ in Windows, you can follow this guide that will help you setting up the environment.
OpenCV team just introduced their new web site. There you can find Introduction to OpenCV section with installation instructions, including detailed instructions for Windows. Don't forget to cleanup your system before installation to avoid problems with mixing different install options. If you still can't get it working with CodeBlocks, follow Dan's advice and try compiling from command line.
When you are done with installation, go on and read there great new tutorials!