Re: ClojureCLR errors on Mono Linux

2012-12-24 Thread RobertLJ

Shantanu

The best way to get going right now with ClojureCLR is to build it from 
source.  The following is the process to build ClojureCLR on Linux 
(Assuming that the mono development environment is installed).  

1. Download: 
https://github.com/clojure/clojure-clr/archive/clojure-1.4.1.tar.gz
2. Untar clojure-1.4.1.tar.gz
3. Download the NuGet.exe commandline installer: 
http://nuget.codeplex.com/releases . Use the link under Available downloads 
NuGet.exe Command Line. 
4. set up nuget as per these directions: 
http://monomvc.wordpress.com/2012/03/06/nuget-on-mono/

5. From the terminal in the lib directory under clojure-1.4.1 use nuget 
to download the dependencies like this:  

A. nuget install DynamicLanguageRuntime.Net20.Unofficial
B. nuget install DynamicLanguageRuntime.Net40.Unofficial
C. nuget install NUnit

6. Copy the assemblies from 
lib/DynamicLanguageRuntime.Net20.Unofficial/lib/net20 to lib/DLR/2.0

7. Copy the assemblies from 
lib/DynamicLanguageRuntime.Net40.Unofficial/lib/net40 to lib/DLR/4.0

8. In a text editor open the Clojure.Compile.csproj file located in 
clojure-1.4.1/Clojure/Clojure.Compile.  Under the PostBuildEvent add 
mono  to the sections so it looks like this:

*-Clojure.Compile.csproj 
Edit---*
 PostBuildEventmono $(TargetPath) clojure.core clojure.core.protocols 
clojure.main clojure.set clojure.zip  clojure.walk clojure.stacktrace 
clojure.template clojure.test clojure.test.tap clojure.test.junit 
clojure.pprint clojure.clr.io clojure.repl clojure.clr.shell clojure.string 
clojure.data clojure.reflect/PostBuildEvent  /PropertyGroup
*-Clojure.Compile.csproj 
Edit---*

*-NUnit 
Edit--*
9. In a text editor open the Clojure.Tests.csproj file located in 
clojure-1.4.1/Clojure/Clojure.Tests.   Change the nunit.framework 
configuration from:

Original Configuration
 Reference Include=nunit.framework, Version=2.6.0.12051, Culture=neutral, 
PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL
  
HintPath..\packages\NUnit.2.6.0.12054\lib\nunit.framework.dll/HintPath
/Reference 

Change Configuration to this 
Reference Include=nunit.framework
  HintPath..\..\lib\NUnit.2.6.2\lib\nunit.framework.dll/HintPath
/Reference
*-NUnit 
Edit--*

10. Finaly from the directory clojure-clr-clojure-1.4.1/Clojure run 
either:

MONO_IOMAP=all xbuild build.proj /target:Build /p:Configuration=Release 
4.0 /p:Platform=Any CPU

or
MONO_IOMAP=all xbuild build.proj /target:Build /p:Configuration=Debug 4.0 
/p:Platform=Any CPU

After the build the binaries will be located in 
clojure-clr-clojure-1.4.1/bin/4.0\{Release || Debug}


I'm working on streamlining this for for ClojureCLR 1.5.0. Hope this helps.

-Robert



On Wednesday, December 19, 2012 5:37:10 PM UTC-5, Shantanu Kumar wrote:

 Here are the steps how to reproduce the issue on 32-bit Ubuntu 12.04:

 1. lein new lein-clr foo
 2. cd foo
 3. # edit project.clj to download the dependencies using :clj-dep
 4. lein clr -v compile :all

 

 5. lein clr -v test

 It will show the exact commands being executed. Are the same Clojure 
 binaries supposed to work on 32-bit systems?

 Shantanu

 On Wednesday, 19 December 2012 13:19:55 UTC+5:30, Shantanu Kumar wrote:

 Thanks David, and sorry for the insufficient bug details. I tested this 
 on 64-bit Ubuntu where it works fine; however, the problem shows up on 
 32-bit Ubuntu.

 I will post the exact steps in the evening on how to replicate the issue 
 on 32-bit Ubuntu.

 Shantanu

 On Wednesday, 19 December 2012 02:00:53 UTC+5:30, dmiller wrote:

 Shantanu,

 I created an Ubuntu 12.10 VM running in VirtualBox on my Win7 PC.  
 I installed Mono 2.10.8.
 I downloaded the zip for ClojureCLR 1.4.0 Debug-4.0.
 Extracted.
  mono Clojure.Main.exe  
 Runs with no problem.

  mono Clojure.Compile.exe test.junk
 Runs with no problem.

 From the errors you report, I can only guess that some pre-1.4 DLLs are 
 being found somehow and loaded.  
 For example,  the field clojure.lang.RT.OutVar did not exist in 
 ClojureCLR 1.3.

 I do not know how else to help.

 -David
  


 On Saturday, December 15, 2012 10:17:59 PM UTC-6, Shantanu Kumar wrote:

 This is when using ClojureCLR 1.4.0 Debug-4.0 version.

 Shantanu

 On Sunday, 16 December 2012 09:45:21 UTC+5:30, Shantanu Kumar wrote:

 Hi,

 I noticed the following ClojureCLR errors using Mono 2.10 on Ubuntu 
 12.04 (they do not happen on Windows using either .NET or Mono):

 1. when running Clojure.Compile.exe:

 Exception: System.MissingFieldException: Field 
 'clojure.lang.RT.OutVar' not found.

 2. when using Clojure.Main.exe:

 Exception: System.TypeLoadException: Could not load type 
 'Clojure.CljMain' from assembly 

Survey says: be eco-friendly (ClojureCLR Action Items)

2012-01-08 Thread RobertLJ
Is anyone currently working on any of these action items for
ClojureCLR?

These items are from the blog post:
http://clojureclr.blogspot.com/2011/11/survey-says-be-eco-friendly.html


1. Action item: Develop a version of Leiningen supporting ClojureCLR
projects (nlein?)
2. Action item: Develop a NuGet distribution for ClojureCLR, and
perhaps ported contrib libs
3. Action item: Develop Emacs support for ClojureCLR
4. Action item: Improve VS integration (vsClojure?)
5. Action item: Investigate Mono compatibility

I have some spare cycles to work on vsClojure and/or Mono
compatibility.

Thanks

Robert

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureDocs.org

2010-07-10 Thread RobertLJ
This is GREAT!!! I love the way you have opened it up for community
participation.


Robert

On Jul 9, 4:32 am, zkim zachary@gmail.com wrote:
 Hi All,

 I'll try to keep this short.

 I've gotten a lot out of Clojure: I can honestly say that learning
 this language, and being part of this community has made me a better,
 happier developer, and I wanted to give something back.

 One of the pain points that I encountered when learning the language
 was a lack of examples specific to the individual functions I was
 trying to wrap my head around at any given time. So I took a whack at
 the problem, and came up withhttp://clojuredocs.org.  It's a site
 that (I'm hoping) will fill this need by providing a centralized
 examples database, along with solid search capabilities across both
 core and third party libraries (core being the focus).

 Implementation:
 ClojureDocs.org is a rails site backed by MySQL, along with some
 clojure code to pull the namespaces / metadata / source and dump them
 into the database.

 Highlights:
 1. Documentation and source for Clojure core, contrib, and a few third
 party libraries (random selection out of what I'm personally familiar
 with, and whatever was on the github trends page that day).

 2. Search for a var across the whole ecosystem or in a specific
 library.

 3. Per var wiki-style examples section.

 4. Per var comments section.

 5. Per var vars-in-this-var and this-var-used-in section (my personal
 favorite).  Looking for a real-world example of a specific function?
 This is for you. For example,http://clojuredocs.org/v/1978, just
 below the source section.

 Lowlights:
 1. Ugly URLs!  There's a problem in the way that URLs with encoded
 question marks are being handled, so I had to move 
 fromhttp://clojuredocs.org/clj-ssh/clj-ssh.core/file-pathtohttp://clojuredocs.org/v/1484.
   I've got an email out to the Phusion
 Passenger mailing list (http://groups.google.com/group/phusion-
 passenger/browse_thread/thread/ed2eadfdac5c166f) but if you've got any
 experience in this area drop me a line.

 2. Strange var names (http://clojuredocs.org/v/781).  Probably a bug
 in the import process.

 3. General rough-around-the-edges-ness.

 I'm treating this as an alpha, and I'd really like feedback as to:
 a. How useful this would be to the community.
 b. Specific likes / dislikes about this alpha release.
 c. Feature requests.

 I've set up a feedback mechanism directly through the site (User
 Voice), which allows voting on specific posts.  I'm also considering
 setting up a google group for general discussion.  Feel free to
 contact me directly through email.

 Questions / thoughts?

 -Zack

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Clojure's n00b attraction problem

2010-06-30 Thread RobertLJ
Well said Phil. I would like to volunteer to help.  It just so happen
that I have some time to help work on  a solution.  I am going to take
a few days to do some research before starting. Any help that the
clojure community can give me would gladly be apreciated

Robert

On Jun 30, 12:35 pm, Phil Hagelberg p...@hagelb.org wrote:
 On Wed, Jun 30, 2010 at 9:27 AM, Phil Hagelberg p...@hagelb.org wrote:
  On Wed, Jun 30, 2010 at 12:24 AM, Alessio Stalla
  alessiosta...@gmail.com wrote:
  That doesn't mean that a one-
  click-install for a Lisp with an IDE and some popular libraries
  preinstalled wouldn't be useful - it would be great! But who is going
  to maintain it? If you pay me well enough, I'll do it, I promise :)
  but until then, no one will do it unless he is so interested in having
  a newbie-friendly Lisp that he'll spend part of his free time for
  that. Are you that individual?

  Thank you. I'm hearing a lot of somebody should do $X in this thread
  and precious little I'm going to help by doing $X.

  The former is useless; please stop it.

 Or rather to be less harsh: the former has been discussed to death by
 this point and is no longer helpful.

 -Phil

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en