Hello
I  am having trouble to install/update any package on julia 0.6
for example Pkg.update() leads to the following error
julia> Pkg.update()
INFO: Initializing package repository /root/.julia/v0.6
ERROR: ReadOnlyMemoryError()
 in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at ./file.jl:65
 in init(::String, ::String) at ./pkg/dir.jl:47
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:28
 in cd(::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:25
 in update() at ./pkg/pkg.jl:210
Any ideas how to solve this ?
I am using ubuntu 16.04 using a virtual machine (Oracle VM) on windows 7
Thanks a lot
PL
             
            
              
              
              
            
            
           
          
            
            
              The local package repository .julia/ should be in your home directory. Are you running as root? What is the output of homedir()? You should also probably initialize the repository with Pkg.init() first.
             
            
              
              
              
            
            
           
          
            
            
              Thanks for your answer:
the homedir() command outputs
julia> homedir()
“/root”
here is the output for Pkg.init
julia> Pkg.init()
INFO: Initializing package repository /root/.julia/v0.6
ERROR: ReadOnlyMemoryError()
in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at ./file.jl:65
in init(::String, ::String) at ./pkg/dir.jl:47
in init() at ./pkg/pkg.jl:70
I guess julia is installed in the wrong place …
Do you know how I can fix this ?
Thanks a lot
PL
             
            
              
              
              
            
            
           
          
            
            
              I usually don’t run programs as root and I would not know how to solve it. Can you log in or create a normal user instead?
Then, as a normal user, you could download the generic Linux binaries, put them in a local directory and it should work. Also, unless you are an experienced user, you should use the stable release v0.5.1.
             
            
              
              
              
            
            
           
          
            
            
              I downloaded the binaries and extracted them in my local directory, however I don’t know what to do next …
I tried to look for some installation or to launch directly julia but not working …
             
            
              
              
              
            
            
           
          
            
            
              Could launch julia using ./julia in the bin folder, however I have the same problem
julia> Pkg.init()
INFO: Initializing package repository /home/plp/.julia/v0.5
ERROR: ReadOnlyMemoryError()
in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at ./file.jl:55
in init(::String, ::String) at ./pkg/dir.jl:47
in init() at ./pkg/pkg.jl:70
             
            
              
              
              
            
            
           
          
            
            
              I have no idea. Can you cd into ~.julia/v0.5?