I'm getting the same error, when calling 'rand' on a Binomial:

  d = Binomial(1,tr.pi[k])
  tr.z[k,:] = rand(d, N)

ERROR: error compiling rand: could not load module libRmath-julia: 
dlopen(libRmath-julia.dylib, 1): image not found
 in rand! at 
/Users/gustavolacerda/.julia/v0.3/Distributions/src/fallbacks.jl:196
 in rand at 
/Users/gustavolacerda/.julia/v0.3/Distributions/src/fallbacks.jl:206
 in rand at 
/Users/gustavolacerda/.julia/v0.3/Distributions/src/fallbacks.jl:210


My version info:

julia> versioninfo(true)
Julia Version 0.3.0-prerelease+1915
Commit fb18482* (2014-03-09 00:41 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin12.5.0)
  CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  uname: Darwin 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 
PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 i386
Memory: 16.0 GB (2306.015625 MB free)
Uptime: 352158.0 sec
Load Avg:  2.43017578125  2.13623046875  1.978515625
Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz: 
       speed         user         nice          sys         idle         
 irq
#1  2600 MHz     221804 s          0 s     106025 s    1003474 s          0 
s
#2  2600 MHz      33203 s          0 s      11230 s    1286619 s          0 
s
#3  2600 MHz     225510 s          0 s      51183 s    1054501 s          0 
s
#4  2600 MHz      31127 s          0 s       9640 s    1290258 s          0 
s
#5  2600 MHz     223458 s          0 s      50849 s    1056822 s          0 
s
#6  2600 MHz      31536 s          0 s       9916 s    1289547 s          0 
s
#7  2600 MHz     225816 s          0 s      50803 s    1054460 s          0 
s
#8  2600 MHz      31398 s          0 s       9702 s    1289873 s          0 
s

  BLAS: libgfortblas
  LAPACK: liblapack
  LIBM: libopenlibm
Environment:
  TERM = dumb
  HOME = /Users/gustavolacerda
  PATH = 
/Users/gustavolacerda/.julia/v0.3/Homebrew/deps/usr/bin:/Users/gustavolacerda/.julia/v0.3/Homebrew/deps/usr/sbin:/Applications/Julia-0.3.0-prerelease-fb184823a3.app/Contents/Resources/julia/bin:/Applications/Julia-0.3.0-prerelease-fb184823a3.app/Contents/Resources/julia/libexec:/usr/bin:/bin:/usr/sbin:/sbin
  FONTCONFIG_PATH = 
/Applications/Julia-0.3.0-prerelease-fb184823a3.app/Contents/Resources/julia/etc/fonts
  GIT_EXEC_PATH = 
/Applications/Julia-0.3.0-prerelease-fb184823a3.app/Contents/Resources/julia/libexec/git-core
  HOMEBREW_CACHE = /Users/gustavolacerda/Library/Caches/Homebrew.jl/

Package Directory: /Users/gustavolacerda/.julia/v0.3
2 required packages:
 - Distributions                 0.4.0
 - Winston                       0.9.0
11 additional packages:
 - ArrayViews                    0.4.1
 - BinDeps                       0.2.12
 - Cairo                         0.2.12
 - Color                         0.2.8
 - Homebrew                      0.0.5
 - IniFile                       0.2.2
 - NumericExtensions             0.5.4
 - PDMats                        0.1.0
 - StatsBase                     0.3.7
 - Tk                            0.2.11
 - URIParser                     0.0.1



On Friday, March 7, 2014 7:41:59 AM UTC-5, Sergey Bartunov wrote:
>
> I'm getting the same error. I guess it is related to 
> https://github.com/JuliaLang/Rmath/issues/3
>
> My versioninfo:
>
> Julia Version 0.3.0-prerelease+1899
>
> Commit f1747ae* (2014-03-07 09:50 UTC)
>
> Platform Info:
>
>   System: Darwin (x86_64-apple-darwin13.1.0)
>
>   CPU: Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz
>
>   WORD_SIZE: 64
>
>   uname: Darwin 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 
> PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 i386
>
> Memory: 16.0 GB (6488.765625 MB free)
>
> Uptime: 159471.0 sec
>
> Load Avg:  1.611328125  1.9794921875  2.05810546875
>
> Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz: 
>
>        speed         user         nice          sys         idle          
> irq
>
> #1  2400 MHz     106070 s          0 s      69945 s     789927 s          
> 0 s
>
> #2  2400 MHz      17352 s          0 s       2506 s     941967 s          
> 0 s
>
> #3  2400 MHz      75853 s          0 s      25873 s     860100 s          
> 0 s
>
> #4  2400 MHz      17387 s          0 s       2807 s     941632 s          
> 0 s
>
> #5  2400 MHz      64127 s          0 s      20101 s     877599 s          
> 0 s
>
> #6  2400 MHz      16312 s          0 s       2505 s     943008 s          
> 0 s
>
> #7  2400 MHz      56503 s          0 s      16698 s     888624 s          
> 0 s
>
> #8  2400 MHz      15258 s          0 s       2252 s     944315 s          
> 0 s
>
>
>   BLAS: libopenblas (USE64BITINT NO_AFFINITY)
>
>   LAPACK: libopenblas
>
>   LIBM: libopenlibm
>
> Environment:
>
>   TERM = xterm-256color
>
>   PATH = 
> /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/python:/opt/X11/bin:/usr/texbin
>
>   HOME = /Users/sbos
>
>
> Package Directory: /Users/sbos/.julia/v0.3
>
> 4 required packages:
>
>  - Devectorize                   0.2.1
>
>  - Distributions                 0.4.0
>
>  - NumericExtensions             0.5.4
>
>  - PyCall                        0.4.2
>
> 3 additional packages:
>
>  - ArrayViews                    0.4.1
>
>  - PDMats                        0.1.0
>
>  - StatsBase                     0.3.7
>
> четверг, 6 марта 2014 г., 23:49:43 UTC+4 пользователь John Myles White 
> написал:
>>
>> Hi James,
>>
>> Because the prerelease binaries change every day, it’s kind of hard to 
>> make statements about what will work when using them. When I next have 
>> time, I’ll try to test them out with the Distributions package. (I’m on 
>> vacation for the next four days, so it may take a while.)
>>
>>  — John
>>
>> On Mar 6, 2014, at 10:23 AM, James W <[email protected]> wrote:
>>
>>
>>
>> Hi John
>>
>> I am using the binary v0.3.0-prerelease for Mac, so pretty up to date.
>>
>> JW
>>
>>
>> On Wednesday, March 5, 2014 5:22:07 PM UTC+1, John Myles White wrote:
>>>
>>> Are you using a binary or a source install? I’ve had a few issues with 
>>> the changed libRmath library name when working with older binary releases. 
>>>
>>>  — John 
>>>
>>> On Mar 5, 2014, at 3:10 AM, James W <[email protected]> wrote: 
>>>
>>> > 
>>> > 
>>> > Hey everyone, 
>>> > 
>>> > Here's my problem: 
>>> > 
>>> > I type: 
>>> > 
>>> > using Distributions 
>>> > rand(Multinomial(1,[0.25,0.25,0.25,0.25])) 
>>> > 
>>> > I get: 
>>> > 
>>> > ERROR: error compiling rand!: error compiling multinom_rand!: could 
>>> not load module libRmath-julia: dlopen(libRmath-julia.dylib, 1): image not 
>>> found 
>>> > 
>>> > Any ideas how to fix this? 
>>> > 
>>> > Thanks 
>>> > 
>>> > James 
>>>
>>>
>>

Reply via email to