jinworks / CellChat

R toolkit for inference, visualization and analysis of cell-cell communication from single-cell and spatially resolved transcriptomics
GNU General Public License v3.0
242 stars 34 forks source link

install and library cellchat error #218

Open lexie-lee opened 3 weeks ago

lexie-lee commented 3 weeks ago

Hello,

I met a problem after i changed a new Macbook when I load cellchat.

The command and error says:


library(CellChat, lib.loc = "/Library/Frameworks/R.framework/Versions/4.2/Resources/library")
Error: package or namespace load failed for ‘CellChat’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/CellChat/libs/CellChat.so':
  dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/CellChat/libs/CellChat.so, 0x0006): Library not loaded: /usr/local/clang4/lib/libc++.1.dylib
  Referenced from: <75EF0F9F-682F-3B7D-878B-F186EE283E6E> /Library/Frameworks/R.framework/Versions/4.2/Resources/library/CellChat/libs/CellChat.so
  Reason: tried: '/usr/local/clang4/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/clang4/lib/libc++.1.dylib' (no such file), '/usr/local/clang4/lib/libc++.1.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libc++.1.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/server/libc++.1.dylib' (no such file), '/var/folders/wr/tk_hj7qs6yzgcpj0d9bjqq6w0000gn/T/rstu

My R version is R 4.2.2. Xcode version is 15.4.

I really need the help. Thanks a lot!

lexie-lee commented 3 weeks ago

And if I try to re-install the package, I also met error. It cannot work.

The command and error says:

`devtools::install_github("jinworks/CellChat")
Downloading GitHub repo jinworks/CellChat@HEAD
Error: Failed to install 'CellChat' from GitHub:
  Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.`

pkgbuild::check_build_tools(debug = TRUE)
Trying to compile a simple C file
Running /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB foo.c
/usr/local/clang4/bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c foo.c -o foo.o
/bin/sh: /usr/local/clang4/bin/clang: No such file or directory
make: *** [foo.o] Error 127
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
nsdelablancac commented 6 days ago

Hi all! I also have problems when installing CellChat:

devtools::install_github("jinworks/CellChat")

Downloading GitHub repo jinworks/CellChat@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/jinworks/CellChat/tarball/HEAD' failed

Anyone knows why it happens? Thanks a lot!

lexie-lee commented 6 days ago

This might because of your internet connection, you can try again.


Xiaoyu Li,

Major in Neuroimmunology

Institute for Translational Brain Research,

Fudan University.

Tel: (+86) 18801269255

---- Replied Message ---- | From | @.> | | Date | 09/9/2024 23:05 | | To | @.> | | Cc | Xiaoyu @.> , @.> | | Subject | Re: [jinworks/CellChat] install and library cellchat error (Issue #218) |

Hi all! I also have problems when installing CellChat:

devtools::install_github("jinworks/CellChat")

Downloading GitHub repo @.*** Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/jinworks/CellChat/tarball/HEAD' failed

Anyone knows why it happens? Thanks a lot!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>