# MultivariateStats (PCA)

**URL:** <https://discourse.julialang.org/t/multivariatestats-pca/82734>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [June 14, 2022, 9:21am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734 "2022-06-14T09:21:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [June 14, 2022, 9:21am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/1 "2022-06-14T09:21:17Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/8/d/8d8dd7bea743d1ffc9e9cb5d50c7f301daeb74b0.jpeg)

and

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/0/d09ec7731c6865e46948e65fc6283fca8651165e.png)

Please help me in error. I am using Manjaro Linux.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 14, 2022, 9:33am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/2 "2022-06-14T09:33:33Z")

</div>

See: [Arpack\_jll artifacts unable to see OpenBLAS\_jll artifacts for linking · Issue #97 · JuliaLinearAlgebra/Arpack.jl · GitHub](https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/97)

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [June 14, 2022, 11:10am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/3 "2022-06-14T11:10:34Z")

</div>

Also, please see [this post](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) with some tips on how to make it easier to help you. In particular, pasting in properly formatted code rather than screenshots is preferred.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 14, 2022, 12:21pm UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/4 "2022-06-14T12:21:59Z")

</div>

Agreed, although OP has been pointed to this many times before (including on the last topic he opened, just a week ago, and over a year go initially) so I’ve given up on re-posting the link at this point…

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [June 14, 2022, 12:34pm UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/5 "2022-06-14T12:34:06Z")

</div>

```julia
(@v1.7) pkg> st --manifest Arpack
      Status `~/.julia/environments/v1.7/Manifest.toml`
  [7d9fca2a] Arpack v0.5.3

julia> versioninfo()
Julia Version 1.7.3
Commit 742b9abb4d* (2022-05-06 12:58 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, sandybridge)

julia> using LinearAlgebra; BLAS.vendor()
┌ Warning: `vendor()` is deprecated, use `BLAS.get_config()` and inspect the output instead
│ caller = top-level scope at REPL[4]:1
└ @ Core REPL[4]:1
:openblas

(@v1.7) pkg> st --manifest Arpack_jll
      Status `~/.julia/environments/v1.7/Manifest.toml`
  [68821587] Arpack_jll v3.5.1+1

(@v1.7) pkg> st --manifest OpenBLAS_jll
      Status `~/.julia/environments/v1.7/Manifest.toml`
  [4536629a] OpenBLAS_jll

julia> using Libdl

julia> filter!(p -> occursin("blas", p), Libdl.dllist())
2-element Vector{String}:
 "/usr/bin/../lib/julia/libblas.so"
 "/usr/bin/../lib/julia/libblastrampoline.so

```

I have installed Julia in My Manjaro Linux by typing “snap install Julia” in CLI terminal.

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [June 14, 2022, 1:48pm UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/6 "2022-06-14T13:48:02Z")

</div>

> [@MultivariateStats (PCA)](https://discourse.julialang.org/t/multivariatestats-pca/82734/5):
>
> (@v1.7) pkg\> st --manifest Arpack Status `~/.julia/environments/v1.7/Manifest.toml` [7d9fca2a] Arpack v0.5.3 julia\> versioninfo() Julia Version 1.7.3 Commit 742b9abb4d\* (2022-05-06 12:58 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz WORD\_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-13.0.1 (ORCJIT, sandybridge) julia\> using LinearAlgebra; BLAS.vendor() ┌ Warning: `vendor()` is deprecated, use `BLAS.get_config()` and inspect the ou…

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [June 14, 2022, 4:23pm UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/7 "2022-06-14T16:23:58Z")

</div>

```julia
      From worker 2:	Stacktrace:
      From worker 2: [1] include(x::String)
      From worker 2: @ MultivariateStats ~/.julia/packages/MultivariateStats/zLpz8/src/MultivariateStats.jl:1
      From worker 2: [2] top-level scope
      From worker 2: @ ~/.julia/packages/MultivariateStats/zLpz8/src/MultivariateStats.jl:113
      From worker 2: [3] top-level scope (repeats 2 times)
      From worker 2: @ none:1
      From worker 2:	in expression starting at /home/raman/.julia/packages/MultivariateStats/zLpz8/src/kpca.jl:3
      From worker 2:	in expression starting at /home/raman/.julia/packages/MultivariateStats/zLpz8/src/MultivariateStats.jl:1
      From worker 2:	ERROR: LoadError: InitError: could not load library "/home/raman/.julia/artifacts/cdf6dc8aa6771a61c6c65a5a5c1a8d1b75f50a2f/lib/libarpack.so"
      From worker 2:	libopenblas64_.so: cannot open shared object file: No such file or directory
      From worker 2:	Stacktrace:
      From worker 2: [1] macro expansion
      From worker 2: @ ~/.julia/packages/JLLWrappers/QpMQW/src/products/library_generators.jl:54 [inlined]
      From worker 2: [2] __init__ ()
      From worker 2: @ Arpack_jll ~/.julia/packages/Arpack_jll/zfgpQ/src/wrappers/x86_64-linux-gnu-libgfortran5.jl:10
      From worker 2: [3] top-level scope (repeats 2 times)
      From worker 2: @ none:1
      From worker 2:	during initialization of module Arpack_jll
      From worker 2:	in expression starting at /home/raman/.julia/packages/Arpack/pLziT/src/Arpack.jl:2
      From worker 2:	ERROR: LoadError: Failed to precompile Arpack [7d9fca2a-8960-54d3-9f78-7d1dccf2cb97] to /home/raman/.julia/compiled/v1.7/Arpack/jl_paZnaY.
      From worker 2:	Stacktrace:
      From worker 2: [1] include(x::String)
      From worker 2: @ MultivariateStats ~/.julia/packages/MultivariateStats/zLpz8/src/MultivariateStats.jl:1
      From worker 2: [2] top-level scope
      From worker 2: @ ~/.julia/packages/MultivariateStats/zLpz8/src/MultivariateStats.jl:113
      From worker 2: [3] top-level scope (repeats 2 times)
      From worker 2: @ none:1
      From worker 2:	in expression starting at /home/raman/.julia/packages/MultivariateStats/zLpz8/src/kpca.jl:3
      From worker 2:	in expression starting at /home/raman/.julia/packages/MultivariateStats/zLpz8/src/MultivariateStats.jl:1

```

> Output in my Terminal while running code in Pluto.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 14, 2022, 5:33pm UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/8 "2022-06-14T17:33:27Z")

</div>

> [@raman\_kumar](#):
>
> I have installed Julia in My Manjaro Linux by typing “snap install Julia” in CLI terminal.

Don’t do this, follow the Linux installation instructions instead:

> **[Platform Specific Instructions for Official Binaries](https://julialang.org/downloads/platform/#linux_and_freebsd)**
>
> The official website for the Julia Language. Julia is a language that is fast, dynamic, easy to use, and open source. Click here to learn more.

---

<div class="post-metadata">

**Author:** ![ParadaCarleton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paradacarleton/32/20005_2.png) [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Post date:** [June 14, 2022, 7:51pm UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/9 "2022-06-14T19:51:39Z")

</div>

If you’re on Manjaro, the best thing to do is install from the AUR. Go into Pacman, search for `julia-bin`, then install that. Make sure you have AUR support enabled. The version on Snap is broken.

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [June 15, 2022, 1:00am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/10 "2022-06-15T01:00:12Z")

</div>

```julia
    ~  cd /home/raman/julia-1.7.3/bin/  1 ✘ 
    ~/julia-1.7.3/bin  julia  ✔ 
The application julia is not installed. It may be found in the following packages:
  community/julia 2:1.7.2-2	/usr/bin/julia
Do you want to Install package julia? (y/N)  

```

> How to install from binary ?

```julia
    /bin  cd  127 ✘  34s  
    ~  cd /home/raman/julia-1.7.3-linux-x86_64/julia-1.7.3/bin  ✔ 
    ~/julia-1.7.3-/j/bin  julia  ✔ 
The application julia is not installed. It may be found in the following packages:
  community/julia 2:1.7.2-2	/usr/bin/julia
Do you want to Install package julia? (y/N) N 
    ~/julia-1.7.3-/j/bin  cd /home/raman/julia-1.7.3-linux-x86_64/julia-1.7.3/bin/
    ~/julia-1.7.3-/j/bin  julia  ✔ 
The application julia is not installed. It may be found in the following packages:
  community/julia 2:1.7.2-2	/usr/bin/julia
Do you want to Install package julia? (y/N) M 
    ~/julia-1.7.3-/j/bin  cd /home/raman/julia-1.7.3-linux-x86_64/julia-1.7.3/bin/julia/
cd: not a directory: /home/raman/julia-1.7.3-linux-x86_64/julia-1.7.3/bin/julia/
    ~/julia-1.7.3-/j/bin  cd /home/raman/julia-1.7.3-linux-x86_64/julia-1.7.3/bin/julia 
cd: not a directory: /home/raman/julia-1.7.3-linux-x86_64/julia-1.7.3/bin/julia
    ~/julia-1.7.3-/j/bin  
    ~  cd /home/raman/julia-1.7.3  ✔ 
    ~/julia-1.7.3  cd /home/raman/julia-1.7.3/bin/julia  ✔ 
cd: not a directory: /home/raman/julia-1.7.3/bin/julia
    ~/julia-1.7.3  cd /home/raman/julia-1.7.3/bin/  1 ✘ 
    ~/julia-1.7.3/bin  julia  ✔ 
The application julia is not installed. It may be found in the following packages:
  community/julia 2:1.7.2-2	/usr/bin/julia
Do you want to Install package julia? (y/N) m 

```

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [June 15, 2022, 7:05am UTC](https://discourse.julialang.org/t/multivariatestats-pca/82734/11 "2022-06-15T07:05:56Z")

</div>

I found [this video](https://www.youtube.com/watch?v=AJ3VJJZHiFA) on youtube helpful. Now i am able to open Julia by typing julia in CLI.

```julia
    ~  julia  ✔ 
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.7.3 (2022-05-06)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> using Pluto
[Info: Precompiling Pluto [c3e4b0f8-55cb-11ea-2926-15256bba5781]
┌ Info: 
│ 
│ Welcome to Pluto v0.19.8 🎈
│ Start a notebook server using:
│ 
│ julia> Pluto.run()
│ 
│ Have a look at the FAQ:
│ https://github.com/fonsp/Pluto.jl/wiki
└ 

julia> Pluto.run()
[ Info: Loading...
┌ Info: 
└ Opening http://localhost:1234/?secret=ezrIUdQ1 in your default browser... ~ have fun!
┌ Info: 
│ Press Ctrl+C in this terminal to stop Pluto

```
