You are not logged in.

#1 2015-11-19 20:34:47

rnz-v001
Member
Registered: 2015-11-19
Posts: 13

tcsh "Bad : modifier in $ ($)" on starting the shell

Hello folks,
when I type tcsh or csh in the terminal I got the following error first:

Bad : modifier in $ ($).

And I don't know why. Here is my .tcshrc file http://pastebin.com/kHCQfvaH I've tried to modify the file according some suggestion I found around the web like using brackets {} but nothing.

If I try to run the following (which skips all the startup files)

tcsh -f

the shell starts without errors, so I thought that the error was my .tcshrc file. But I got the same error if I remove the .tcshrc (or .cshrc) file from my home folder.

I don't know what to check further...

PS: I'm trying to run procheck (https://www.ebi.ac.uk/thornton-srv/software/PROCHECK/) which uses csh without succes. I really need to run that software and I don't want to abandon arch linux sad

thanks in advance

Offline

#2 2015-11-20 19:25:14

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

I've put the contents of your pastebin link into the ~/.cshrc on my arch system and don't get any errors.

Have you tried without having any of those lines (or any lines at all for that matter) in your ~/.cshrc and then typing them in line-by-line to see if you get errors?

It might be useful if you posted your entire ~/.cshrc (or ~/.tcshrc) file.

Offline

#3 2015-11-21 12:58:42

rnz-v001
Member
Registered: 2015-11-19
Posts: 13

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

typing tcsh -V I got this http://pastebin.com/k7psfVsN
so I think the problem was other files, I just removed adobe-air since I didn't need it anymore and solved the problem.

But I'm still having problem running procheck, not sure I'll be still on topic...

Offline

#4 2015-11-21 15:12:55

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

Just as a sanity check, perhaps you should double check you have followed the information - did you for instance...

# "Note: Edit the strings @@_procheck_program_directory_@@ and
#       @@_aqua_program_directory_@@"

Offline

#5 2015-11-22 11:58:42

rnz-v001
Member
Registered: 2015-11-19
Posts: 13

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

yep sure I did, that aqua It's not used, I'm following the instruction they give to me (I'm in a class where they suggest to use ubuntu but I'd like to keep working whith my arch but I'm having lots of troubles that's frustrating...) I think there are some compiling problem with f77

http://pastebin.com/qrizTiR3

seems that are functions missing. In fact if I try to compile those functions I got this:

 $ f77 -g -o tplot tplot.o ps.o
    tplot.o: nella funzione "getpts_":
    /home/renzo/procheck/procheck/tplot.f:1636: riferimento non definito a "f_back"
    collect2: error: ld returned 1 exit status 

Offline

#6 2015-11-22 21:26:00

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

Not sure how much I can help you further without installing the program myself, but looking at your last pastebin link, you appear to have several "Command not found." problems: for instance...

/home/renzo/procheck/procheck/clean: Command not found

So are the programs that the script is trying to run actually there, for example...

ls -la /home/renzo/procheck/procheck/clean

and if it is, you could check what it the file is with...

file /home/renzo/procheck/procheck/clean

If they are there, then it must be something with your settings.

Offline

#7 2015-11-22 21:29:27

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

rnz-v001 wrote:

In fact if I try to compile those functions I got this:

 $ f77 -g -o tplot tplot.o ps.o
    tplot.o: nella funzione "getpts_":
    /home/renzo/procheck/procheck/tplot.f:1636: riferimento non definito a "f_back"
    collect2: error: ld returned 1 exit status 

f77 - don't you mean gfortran or have you done an alias?

Offline

#8 2015-11-22 22:23:33

rnz-v001
Member
Registered: 2015-11-19
Posts: 13

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

I think is the fortran compiler I've just installed fort77 and found that command looking inside the makefile.
here is the package: http://www.ebi.ac.uk/systems-srv/mp/fil … z?fno=2874
the manual: http://www.ebi.ac.uk/systems-srv/mp/fil … z?fno=2568 and readme: http://www.ebi.ac.uk/systems-srv/mp/fil … E?fno=2566

just followed the instruction after executing make and this is what I have in my folder http://pastebin.com/hRuKxwPn and not all of them are succesfully compiled I think, and I don't know why sad

Offline

#9 2015-11-23 09:09:17

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

Did you try using gfortran instead of fort77 ?
I don't think this is a specfic Arch problem - perhaps you should get in touch with the people who wrote the software for advice?

Offline

#10 2015-11-24 00:56:34

rnz-v001
Member
Registered: 2015-11-19
Posts: 13

Re: tcsh "Bad : modifier in $ ($)" on starting the shell

just tried, quite the same result tons of lines saying missing ref and in the end "collect2: error: ld returned 1 exit status
"
yeah I'll try that way I think. It's just I though that was a compiler issue on my machine since it works on ubuntu on the machines of my collegues.

Anyway, thanks mate for your patience

Offline

Board footer

Powered by FluxBB