# Legacy code on MacOS

**URL:** <https://discourse.julialang.org/t/legacy-code-on-macos/36580>\
**Category:** General Usage\
**Created:** [March 27, 2020, 3:34am UTC](https://discourse.julialang.org/t/legacy-code-on-macos/36580 "2020-03-27T03:34:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipelle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fipelle/32/4772_2.png) [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Post date:** [March 27, 2020, 3:34am UTC](https://discourse.julialang.org/t/legacy-code-on-macos/36580/1 "2020-03-27T03:34:39Z")

</div>

Hi all,

I need to run an old code written for Julia 0.6.\*. I have installed Julia 0.6.4 on my macbook, but it does not work properly. As soon as I try to install common packages I get the following error message:

`ERROR: SystemError: realpath: No such file or directory.`

How can I make it work?

Note: While I could update the code, it would be much faster to run it once on Julia 0.6.\*. I need to make a series of charts from an old output file, and it is not worth spending time updating the code.

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [March 27, 2020, 2:40pm UTC](https://discourse.julialang.org/t/legacy-code-on-macos/36580/2 "2020-03-27T14:40:19Z")

</div>

I’m not sure what “common packages” are…So I wouldn’t know where to look for that error. `realpath` is a common program (on linux at least) that converts a path into it’s absolute path.

Googling for realpath on mac I came across:  
[http://blog.ivansiu.com/blog/2014/05/01/os-x-get-full-path-of-file-using-realpath/](http://blog.ivansiu.com/blog/2014/05/01/os-x-get-full-path-of-file-using-realpath/)  
I’m not a fan of installing stuff…but the bash alias:

```julia
alias filepath="python -c 'import os,sys;print os.path.realpath(sys.argv[1])'"

```

seems promising…

---

<div class="post-metadata">

**Author:** ![new\_juelz](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@new\_juelz](https://discourse.julialang.org/u/new_juelz)\
**Post date:** [October 24, 2020, 10:26pm UTC](https://discourse.julialang.org/t/legacy-code-on-macos/36580/3 "2020-10-24T22:26:30Z")

</div>

Having the same issue. MacOSX Catalina. Julia 0.6.4. Giving all disk/file/folder permissions to Julia didn’t work.

@fipelle any chance you’ve found a workaround on this?

Thanks!

---

<div class="post-metadata">

**Author:** ![fipelle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fipelle/32/4772_2.png) [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Post date:** [October 25, 2020, 8:21pm UTC](https://discourse.julialang.org/t/legacy-code-on-macos/36580/4 "2020-10-25T20:21:34Z")

</div>

Yes, I did.

I have installed a virtual linux environment with VirtualBox and run the legacy code there. It is not a pretty solution, but it worked for me – it was a quick run.
