You are here

how to restore "rosetta_scripts.default.linuxgccrelease"

5 posts / 0 new
Last post
how to restore "rosetta_scripts.default.linuxgccrelease"
#1

Hi,

I have rosetta installed but when using it I accidently deleted rosetta_scripts.default.linuxgccrelease. I am wondering how I can get it back. Can anyone help me, please?

Thank you very much.

Jinyan

 

Category: 
Post Situation: 
Thu, 2019-08-22 15:08
xinmiaohe

Recompile rosetta as you did the first time.  It should take only a few minutes for a recompile assuming you only deleted the one file.

 

You probably didn't even delete the file, you probably deleted a symlink thereto.  If you look at where it should be in bin/, you'll find 100 other executables; the place they all point to is where the executable actually is (and the one you need is probably still there).

Thu, 2019-08-22 16:48
smlewis

Hi, 

Thank you very much for helping. I run a wrong command " >  /path/to/resetta_scripts.default.linuxgccrelease " After this command when I vi rosetta_scripts.default.linuxgccrelease . it became an empty file.

I run " ./scons.py -j 1 mode=release bin " but  "rosetta_scripts.default.linuxgccrelease" is still empty.

so I delete "rosetta_scripts.default.linuxgccrelease" from the main/source/bin directory and  run " scons bin mode=release" . I can get" rosetta_scripts.default.linuxgccrelease" back but it is still an empty file.  I also tried " ./scons.py -j 1 mode=release bin " and got same results. 

I also deleted the bin directory and run the two commands as mentioned above.I can get bin directory back, and other files are excutable but  "rosetta_scripts.default.linuxgccrelease" is still empty.

I am wondering whether you could help me out. I would be much appreciated. 

Thanks again

Best regards

Jinyan

Fri, 2019-08-23 08:07
xinmiaohe

If you are looking in the bin folder, you should only see symbolic links anyway, not actual files.  (If you inspect them via "cat" or whatever it should just load the linked file, but on disk they are in fact tiny).  for example, running ls -l in bin, I see:

 

rosetta_scripts.macosclangrelease -> /Users/smlewis/rosetta-main/source/cmake/build_release/rosetta_scripts

 

This is with the cmake build, but you should see something similar on your machine, pointing to something in the build directory if you used scons.  

 If rosetta_scripts isn't working look at the other applications in bin - they'll all point to the same place.  Go see if rosetta_scripts is present there, at the place the symlinks are pointing.

 

Deleting the empty file and recompiling should have reconstituted the symlink for you, but it's possible you clobbered the underlying binary and we need to trick scons into recompiling it.  Find it by following the symlink as I described above and deleting it manually, perhaps?

Fri, 2019-08-23 13:01
smlewis

Thank you very much for your help!!!!!!!!!

It is solved.

Thanks again.

 

Fri, 2019-08-23 13:56
xinmiaohe