# Problems in installing package MAT

**URL:** <https://discourse.julialang.org/t/problems-in-installing-package-mat/49547>\
**Category:** New to Julia\
**Created:** [November 3, 2020, 6:35pm UTC](https://discourse.julialang.org/t/problems-in-installing-package-mat/49547 "2020-11-03T18:35:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcalajo](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@gcalajo](https://discourse.julialang.org/u/gcalajo)\
**Post date:** [November 3, 2020, 6:35pm UTC](https://discourse.julialang.org/t/problems-in-installing-package-mat/49547/1 "2020-11-03T18:35:05Z")

</div>

Hi I am trying to download the package MAT in Julia 0.64 with the command Pkg.add(“MAT”)  
I did it other times in other PC with no issues but this time is giving me the following error:

**ERROR:** SystemError: realpath: No such file or directory

#systemerror#44 at ./error.jl:64 [inlined]

systemerror(::Symbol, ::Bool) at ./error.jl:64

realpath(::String) at ./path.jl:311

mkcachedir() at ./pkg/cache.jl:23

prefetch(::String, ::String, ::Array{String,1}) at ./pkg/cache.jl:35

resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::Dict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) at ./pkg/entry.jl:518

resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::Dict{String,Base.Pkg.Types.Fixed}) at ./pkg/entry.jl:479

edit(::Function, ::String, ::Base.Pkg.Types.VersionSet, ::Vararg{Base.Pkg.Types.VersionSet,N} where N) at ./pkg/entry.jl:30

(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at ./task.jl:335

Stacktrace:

[1] **sync\_end()** at **./task.jl:287**

[2] **macro expansion** at **./task.jl:303** [inlined]

[3] **add(** ::String, ::Base.Pkg.Types.VersionSet **)** at **./pkg/entry.jl:51**

[4] **(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})()** at **./pkg/dir.jl:36**

[5] **cd(** ::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String **)** at **./file.jl:70**

[6] **#cd#1(** ::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N **)** at **./pkg/dir.jl:36**

[7] **add(** ::String **)** at **./pkg/pkg.jl:117**

Someone can help?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [November 3, 2020, 9:49pm UTC](https://discourse.julialang.org/t/problems-in-installing-package-mat/49547/2 "2020-11-03T21:49:20Z")

</div>

I’m afraid that it will be difficult to get help with such an old version of Julia (I guess you mean 0.6.4).

I’d suggest, if possible, to move to a newer Julia version.

---

<div class="post-metadata">

**Author:** ![gcalajo](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@gcalajo](https://discourse.julialang.org/u/gcalajo)\
**Post date:** [November 4, 2020, 8:59am UTC](https://discourse.julialang.org/t/problems-in-installing-package-mat/49547/3 "2020-11-04T08:59:37Z")

</div>

Hi thanks for reply.  
Yes this is the version, the problem is that I have a really long code written in that version that is incompatible with newer ones…there is no way to get around the problem?

---

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [November 4, 2020, 9:08am UTC](https://discourse.julialang.org/t/problems-in-installing-package-mat/49547/4 "2020-11-04T09:08:37Z")

</div>

You could also try with Julia 0.7, which (IIRC) should be able to run code for 0.6, with some warnings.

MAT.jl was a bit tricky, and wasn’t updated for a while then. You might want to try cloning it, and checking out a particular tagged version by hand.
