Installing SPIDER single particle software-help with bashrc?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Installing SPIDER single particle software-help with bashrc?
# 1  
Old 04-21-2014
Installing SPIDER single particle software-help with bashrc?

Hello,

I am a Unix newbie and I need some help with getting this program up and running for work. It is a program for analyzing electron microscopy images. If you google SPIDER single particle, you will find the website with the program to download as well as the installation instructions (which I am trying to follow). Sorry, I apparently can't post links on my first post.

I unpacked and put the downloaded files into my home directory and set up a .bashrc startup file there as well. I am on Mavericks so I have used TextEdit to do this. It looks something like this:
Code:
export SPIDER_DIR= "/Users/username/spider" 
export SPBIN_DIR=  "$/Users/username/spider/bin/" 
export SPMAN_DIR=  "$/Users/username/spider/man/" 
export SPPROC_DIR= "$/Users/username/spider/proc/" 
export PATH="${/Users/blancacarbajal/spider}/bin:${PATH}"

I don't know what to to put in that last line, i.e. in place of {PATH}. Smilie I actually don't know what the "{}" brackets mean. I've tried putting in the path for the /bin directory but that doesn't seem to work, i.e. if I try to run the program in the terminal window by typing spider, nothing happens. Any help would be greatly appreciated and I can provide more information if it is needed.

Does the .bashrc file have to be in the same folder as the program files? i.e. the spider folder in this case? I have a feeling it doesn't matter and that's the whole purpose of setting the file up in the first place, but I am really quite clueless. I just name is .bashrc, right?

Thank you in advance,

Blanca

Last edited by Franklin52; 04-21-2014 at 01:39 PM.. Reason: Please use code tags for data and code samples
# 2  
Old 04-21-2014
.bashrc resides in your home directory and it's responsible for defining your environment. ${PATH} is your default path used whenever you try to execute something. Do this command
Code:
echo ${PATH}

to see what your default path is. Anything in a bracket preceded by a $ means a shell variable. You don't actually need the bracket, so ${PATH} is equivalent to $PATH. The standard is to use a bracket. What is a bit curious is the $ sign in some of the variables you are defining. Where did you actually install the spider program?
This User Gave Thanks to blackrageous For This Post:
# 3  
Old 04-22-2014
I downloaded it as a tar.gz file from the software's website (google spider single particle and you will find the website) and it was downloaded to my desktop. I unpacked it and then copied that folder into my home directory. All of the $ signs are there because the website's installation instructions said to copy that info into my bashrc file with the appropriate directories. I kind of remember from my use of Linux RedHat in the past that $ signs are used for notes, i.e. won't be read as commands??? I don't know...

As I listed above /Users/username/spider : this means it is in my home directory and the spider folder contains all the executable files. The original instructions showed the following:

" Using the 'bash' shell:
export SPIDER_DIR= "PARENT_DIR/spider"
export SPBIN_DIR= "$SPIDER_DIR/bin/"
export SPMAN_DIR= "$SPIDER_DIR/man/"
export SPPROC_DIR= "$SPIDER_DIR/proc/"
export PATH= "${SPIDER_DIR}/bin:${PATH}"

Note: Do not use a ~username construct in the SPIDER_DIR path or SPIDER will be unable to find the Results file naming script.

Finally rename the desired spider_linux executable in PARENT_DIR/spider/bin to: spider for easy access. "


I just tried to copy that information above into a text tile and replaced the PARENT/DIR with the pwd that contains the spider folder. Does that help?

---------- Post updated at 01:04 PM ---------- Previous update was at 11:02 AM ----------

Quote:
Originally Posted by blackrageous
.bashrc resides in your home directory and it's responsible for defining your environment. ${PATH} is your default path used whenever you try to execute something. Do this command
Code:
echo ${PATH}

to see what your default path is. Anything in a bracket preceded by a $ means a shell variable. You don't actually need the bracket, so ${PATH} is equivalent to $PATH. The standard is to use a bracket. What is a bit curious is the $ sign in some of the variables you are defining. Where did you actually install the spider program?
So I can remove the brackets, right?

---------- Post updated 04-22-14 at 11:59 AM ---------- Previous update was 04-21-14 at 01:04 PM ----------

Hello? Anyone? Smilie
# 4  
Old 04-22-2014
Moderator's Comments:
Mod Comment Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.


Did you actually try it? It should work with the brackets.

You do not need to replace ${PATH} with anything, in short. ${PATH} is already defined. The SPIDER instructions just add one more string to the ${PATH} variable.
# 5  
Old 04-22-2014
I'm sorry about that;I just felt like my question wasn't really being answered and I just being given extraneous technical information.

So is the following fine as it is as my .bashrc?:

export SPIDER_DIR= "/Users/username/spider"
export SPBIN_DIR= "$/Users/username/spider/bin/"
export SPMAN_DIR= "$/Users/username/spider/man/"
export SPPROC_DIR= "$/Users/username/spider/proc/"
export PATH= “${PATH}/bin:${PATH}"

Because I try this and I still get "command not found" when I try to run spider.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Installing software -going insane

I have Solaris 10 update 11 installed on a virtual machine which I use for my lunix class (I'm studying I.T. but have little unix experience). So I have root access* I'm also do C programming in my course and would love to do it on my Solaris machine. So I looked into installing GCC and... (5 Replies)
Discussion started by: goformickey
5 Replies

2. HP-UX

Installing software other than default directory

Hi, I'm using the command(swinstall -s product.pkg product1.cbin) to install software(product1). Here by default the installation is happening on the location(/opt/). Whereas I want the installation directory to be a different one (eg. /sw/). Is there any specific command which will help me to... (1 Reply)
Discussion started by: Thunderbird288
1 Replies

3. Solaris

Help installing WINE and other software

ive installed the open solaris 9 and i have downloaded wine but i dont have a clue how to install it ive unzipd the file but when i click it it just does nothing it opens but its just files im new to solaris i would realy like to know how to install and run programs like vlc player and things any... (19 Replies)
Discussion started by: drdex
19 Replies

4. Red Hat

Erro in Installing OPENOFFICE SOFTWARE

Dear All I want to install openoffice on my redhat 5.1 linux os. open office folder is already extracted on Desktop. #cd Desktop/OOO310_m11_native_packed-2_en-US.9399 #./setup After run the setup command, i am getting the Error mentioned below.Please any body can help me. ERROR:- ... (1 Reply)
Discussion started by: sahu.tapan
1 Replies

5. UNIX Desktop Questions & Answers

Installing software

Greetings, all. I'm a newcomer here, and I appreciate the forum to ask questions. Here is the situation: I am installing software on a network hard-drive (NAS), to add functionality to it. The OS is in a read-only flash partition. Someone else hacked the firmware to install Busybox on this... (1 Reply)
Discussion started by: jhansen
1 Replies

6. UNIX for Dummies Questions & Answers

Installing Software

Hi all, So I remotly log on to one of the unix boxes we have at work. I want to use a software that is not installed on the server. What's better? to install it locally in my home folder and use it, or to ask the system admin to install it on the server? and what's the main difference? I asuume... (1 Reply)
Discussion started by: Rachel Ross
1 Replies

7. SuSE

installing software

hi, i have installed suse linux (10) at my home. can anyone tell me how do i install the softwares like players , messengers etc. i am new to linux ,i am learning now. can anyone suggest or post any material so that i can easily go through and learn. thanks in advance. vishwa. (6 Replies)
Discussion started by: viswareddy.32
6 Replies

8. UNIX for Dummies Questions & Answers

Installing Software on Multiple Systems

I have been given the task of installing subversion on rhe4 32 and 64 bit, suse9 ia64, hpux 11.22 ia64, hpux 11.11 pa_risc, solaris 2.8 sparc, and irix 6.5. How can I do this? I know that rhe5 and debian have things like yum and apt for packages. What are the equivalents for these systems? ... (4 Replies)
Discussion started by: ldb88
4 Replies

9. UNIX Desktop Questions & Answers

installing new software

Hello, I recently downloaded and installed fedora core 3, and I am triyng to install other software like movie players and so on, when ever I download software for this operating system, I recieve with the software a text file explaining how to install it. The installation instrucions are allways... (1 Reply)
Discussion started by: st_matan
1 Replies

10. UNIX for Dummies Questions & Answers

installing software

when i d/l files from net "/usr/port/editor/koffice then make" i don't know what excactly have to do after when it finnished d/l it and configure i guess what its done downloading file it configures :confused: the file what do i have to do next I use FREEBSD 4.5 (3 Replies)
Discussion started by: challenger
3 Replies
Login or Register to Ask a Question