how to restore “rosetta_scripts.default.linuxgccrelease”

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install how to restore “rosetta_scripts.default.linuxgccrelease”

Viewing 1 reply thread
  • Author
    Posts
    • #3229
      Anonymous

        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

         

      • #14891
        Anonymous

          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).

          • #14893
            Anonymous

              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

            • #14894
              Anonymous

                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?

              • #14895
                Anonymous

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

                  It is solved.

                  Thanks again.

                   

            Viewing 1 reply thread
            • You must be logged in to reply to this topic.