Closed jinxsfe closed 4 months ago
3d image analysis is computationally expensive. Virtualization, has historically anyway, added abstraction layers over the hardware that impedes efficiency, especially gpu drivers.
That said, I know wsl2 on windows has gotten better, so maybe? If you are doing any real processing, you'll probably need to be on a server which will likely be running Linux anyway.
You can always try and see!
Hi, I use original linux system to install it, but there still shown the error, can you give me some advice? whole element was attached the document
emClarity running guide.odt I create the
nano ~/emclarity_wrapper.sh
ORIGINAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/js22bp/matlab_install/matlab-2020b/v96/runtime/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/bin/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/sys/os/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/extern/bin/glnxa64:$LD_LIBRARY_PATH
/home/js22bp/cryo/emClarity_1.5.3.11/bin/emClarity_1_5_3_11 $@
export LD_LIBRARY_PATH=$ORIGINAL_LD_LIBRARY_PATH
my own environment variable is
@bHimes
This looks like it is failing because you are not passing any args to your wrapper. You shouldn't even be writing a wrapper though. When you downloaded emClarity, you should have in your bin a binary emClarity_maj_minor_bug and a wrapper generated when I compile emC named: emClarity_maj_minor_bug_v20b. (major/minor/bug will be numbers and the v20b will correspond to the Matlab MCR version required**
export LD_LIBRARY_PATH=/home/js22bp/matlab_install/matlab-2020b/v96/runtime/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/bin/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/sys/os/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/extern/bin/glnxa64:$LD_LIBRARY_PATH
Run emClarity
You don't want to modify your LD_LIBRARY_PATH, instead, add those matlab/mcr paths to your emClarity_maj_minor_bug_v20b wrapper near the top, also setting emClarity_root
#!/bin/bash
# When this script is invoked, record the PID so that the EMC_tmpDir is deleted
# even in the event of a crash. (With program script added from EMC_tmpDir.sh)
thisPID=$$
# Note you no longer need to modify this line inside the singularity container:
MCR_BASH=/home/js22bp/matlab_install/matlab-2020b/v96/runtime/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/bin/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/sys/os/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/extern/bin/glnxa64MATLAB/R2023a/bin/glnxa64:/sa_shared/software/matlab2023/MATLAB/R2023a/sys/os/glnxa64
#Please modify this line to point to the install for emClarity binary
export emClarity_ROOT=export emClarity_ROOT=/home/js22bp/cryo/emClarity_1.5.3.11
I use 1.5.3.11 and try to find the file that you mentioned, and the file name is emClarity_1_5_3_11_v19a, which located at
and I try run the command as the true route, but still dont find the emclarity when I type emClarity check, the code is list below:
MCR_BASH=/home/js22bp/matlab_install/matlab-2020b/v96/runtime/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/bin/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/sys/os/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/extern/bin/glnxa64
export emClarity_ROOT=/home/js22bp/cryo/cryo/emClarity_1.5.3.11 export LD_LIBRARY_PATH=${emClarity_ROOT}/lib:${MCR_BASH}:${LD_LIBRARY_PATH}
################################################################################ ################################################################################
@bHimes
thisPID=$$
MCR_BASH=/home/js22bp/matlab_install/matlab-2020b/v96/runtime/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/bin/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/sys/os/glnxa64:/home/js22bp/matlab_install/matlab-2020b/v96/extern/bin/glnxa64MATLAB/R2023a/bin/glnxa64:/sa_shared/software/matlab2023/MATLAB/R2023a/sys/os/glnxa64
as you provide code above, I am confused :/home/js22bp/matlab_install/matlab-2020b/v96/extern/bin/glnxa64MATLAB/R2023a/bin/glnxa64:/sa_shared/software/matlab2023/MATLAB/R2023a/sys/os/glnxa64, do I need this part? I dont have matlab2023a for my linux system, besides that,
there is double export command export emClarity_ROOT=export emClarity_ROOT=/home/js22bp/cryo/emClarity_1.5.3.11
@bHimes
It looks like you need some help using basic linux skills.
I don't think you added emClarity to your PATH or alternatively made an alias for emClarity. But I can't quite tell because your comments are formatted in a very "shouting" font.
Please only submit one response at a time. I just got 6 emails from you.
Please use the "preview" tab on the comment box to see what you are producing when GitHub parses your markdown.
Please try to get some help from someone in your department. I can't be an intro to Linux tutor.
I am sorry that my comment make you confusing , and I didn't realize that the format for text like attitude towards for personal, I am very very sorry.
I had obey your guide and fill the root for emClarity, which is like below
but result is not good even I ask help for someone who is good for linux, he also don't know how to run successful for emClarity. we run like
we are reinstall and obey the process for instructions @bHimes
Thanks for your help, appreciate!
It looks like it is running fine - you haven't provided any commands for emClarity to execute.
Please study the tutorial found here.
For your reference:
# Your first attempt is redundant. Because the script you ran has a "shebang" (#!/bin/bash) the script can be run directly without explicitly calling an interpreter (as you have below.)
bash script name
# Your second attempt is okay in some sense, but typically this usage is to bring variables declared in a script into your current shell's scope
source script name
# Your third attempt is fine and would work if you provided a subcommand to run (see tutorial)
./script_name
# Ideally, you would just add either of the following to the end of our ${HOME}/.bashrc
# option 1 add to path
export PATH=${HOME}/emClarity_1.5.3.11/bin:$PATH
# option 2 make an alias
alias emClarity=${HOME}/emClarity_1.5.3.11/bin/emClarity_1.5.3.11_v19a
# I suggest the alias
Hope that helps, I'm going to mark this issue as solved.
Hi, I had seen the installation requirement must linux and MAC, can I install via virtual BOX or openVZ something like that? or Ubuntu