You are here

Compilation problems

11 posts / 0 new
Last post
Compilation problems
#1
Hi. I have had some problems installing Rosetta 3.12, I have downloaded the source version, the zlib1g-dev package, gcc 9.3.0 and python 3.8.2, my operating system is Ubuntu 20.04.1 LTS. The problem is when I compile rosetta:

if I type: ./scons.py -j 2 mode = release bin ... this is the output from the terminal:

~ / rosetta / main / source $ ./scons.py -j 2 mode = release bin
/ usr / bin / env: "python": The file or directory does not exist.


 
If I type: python3 scons.py -j 2 bin mode = release ... this is the output from the terminal:

/ rosetta / main / source $ python3 scons.py -j 2 bin mode = release
scons: Reading SConscript files ...
Running versioning script ... Release package detected, using rosetta / main / .release.json to acquire version information ...
Donate. (0.0 seconds)
./update_options.sh: line 8: python: command not found
Traceback (most recent call last):
File "/ home / soler / rosetta / main / source / SConstruct", line 162, in main
SConscript ("SConscript", "build")
File "/home/soler/rosetta/main/source/external/scons-local/scons-local-3.0.4/SCons/Script/SConscript.py", line 667, in __call__
return method (* args, ** kw)
File "/home/soler/rosetta/main/source/external/scons-local/scons-local-3.0.4/SCons/Script/SConscript.py", line 604, in SConscript
return _SConscript (self.fs, * files, ** subst_kw)
File "/home/soler/rosetta/main/source/external/scons-local/scons-local-3.0.4/SCons/Script/SConscript.py", line 284, in _SConscript
exec (compile (_file_.read (), _file_.name, 'exec'),
File "/ home / soler / rosetta / main / source / SConscript", line 32, in <module>
subprocess.check_call (["./ update_options.sh"])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError (retcode, cmd)
subprocess.CalledProcessError: Command '[' ./update_options.sh ']' returned non-zero exit status 127.
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `bin '(/ home / soler / rosetta / main / source / bin). Stop.
scons: building terminated because of errors.


I would greatly appreciate your help. Thanks in advance.
 
 
 
 
 
Category: 
Post Situation: 
Wed, 2020-09-09 13:30
Soler

The issue you're running into is that Ubuntu 20.04 comes with Python3, but does not come with Python2 by default. Additionally, as historically the `python` command has been Python2, they made the decision not to alias the plain `python` command to Python3 by default, and just not provide it. This means that anything that calls for just `python` won't work in an off-the-shelf version of Ubuntu 20.04.

There are two packages which will change this: python-is-python3 and python-is-python2 which will cause the plain `python` command to be either Python3 or Python2, respectively.

Either one will likely work, but keep in mind that (as of writing in early Sep 2020) we have not yet converted all of the Python scripts in Rosetta to be runnable with Python3. While there are a fair number of scripts which have been converted, and many which are runnable with either version, there are still quite a few which are Python2.7 only. As such, while you can chance installing python-is-python3, you may be safer with python-is-python2.

Wed, 2020-09-09 15:31
rmoretti
Thank you very much for your help, but how can I install the python-is-python2 package?
 
Wed, 2020-09-09 19:24
Soler

On Ubuntu, the command would be `sudo apt install python-is-python2` -- this would need to be done by an account with administration rights to the machine.

Thu, 2020-09-10 05:47
rmoretti

First of all, thank you very much, I already compiled everything, without errors, the bin directory is full, with the protocols. My goal is to use pepspec, for the design of peptides with a target protein, of course. One question I have is about the flags, do I have to create it myself? or just copy it into some text editor? I've been going through the protocol, which I'm not sure if that's what I saw. Again, thank you very much for your help.

Sat, 2020-09-12 21:16
Soler

You can certainly just create the options file yourself with a text editor. Copying an existing options file and making edits with a text editor is also a valid stratagy. It's just a plain-text formatted file, so as long as your text editor doesn't insert spurious characters, you should be good.

Sun, 2020-09-13 11:35
rmoretti

Good evening, I would like to ask for your help because I am trying to run the pepspec anchor dock protocol, so I am using the following options as flags, which come in the tutorial:

-database / home / soler / rosetta / main / database
-in: file: s ./KARS.pdb
-ex1 - increase the chi1 resolution of the rotamer library
-ex2 - increase the chi2 resolution of the rotamer library
-extrachi_cutoff 0 - increase rotamer sampling at exposed positions
-pepspec: ref_pdb_list KARS.pdb A 5
-pepspec: n_peptides 5
-pepspec: anchor_type PRO
-pepspec: no_prepack_prot false

For this, I am executing the protocol on the desktop, in it I have the input structure and the previous flags file.

 Desktop $ /home/soler/rosetta/main/source/bin/pepspec_anchor_dock.default.linuxgccrelease @flags

When I run this in the terminal, it automatically gives me an internal error, this appears when I open rosetta_crash.log:

[FILE]: src / utility / options / OptionCollection.cc
[LINE]: 1430
[START_MESSAGE]
Option matching -database not found in indented @file context -

[END_MESSAGE]
[END_CRASH_REPORT]

Can you help me? Thanks in advance

Thu, 2020-09-17 22:06
Soler

(First off, it's best to open this new issue as a different post.)

The issue here is likley to be the formatting of your options file. Indentation matters. Generally speaking, you want to place the options at the leftmost edge of the file, unless you're explicitly taking advantage of the options nesting approach. (Which is often unneeded.)

The other thing to check is that you wrote the option file with a text editor and not a word processor. In particular, you want to make sure that the '-' in the option is an ASCII hyphen and not a en-dash or an em-dash. A plain text editor will do an ASCII hyphen when you type '-', but a word processor might helpfully "fix" it for you.

Tue, 2021-02-09 08:36
rmoretti

hello, I seem to meet the same problem on ubuntu22.04 install rosetta_new_daily_release. I used the command sudo apt install python-is-python2,but wrong in connect python2 candidate. So i used udo apt install python-is-python3. And type the comand "./scons.py -j 12 mode=release bin extras=mpi" ,but wrong :It looks like opal_init failed for some reason; your parallel process is likely to abort. There are many reasons that a parallel process can fail during opal_init; some of which are due to configuration or environment problems. This failure appears to be an internal failure; here's some additional information (which may only be relevant to an Open MPI developer):

mca_base_var_init failed --> Returned value -1 instead of OPAL_SUCCESS -------------------------------------------------------------------------- scons: *** [build/src/release/linux/6.2/64/x86/gcc/11/mpi/protocols/antibody_legacy/LHSnugFitLegacy.os] Error 255 scons: building terminated because of errors. ```` so what could i do for next step? thanks your greeting answer if you coud help.

Wed, 2023-12-13 05:16
paulbo

The first thing to try is to edit the Rosetta/main/source/tools/build/site.settings file and remove the "#" from the start of the line with `"ENV" : os.environ,` on it. Hopefully this will allow the configuration settings for the MPI environment to pass through the sconds build system.

Wed, 2023-12-13 07:17
rmoretti

thanks for your kindly advice, the install problem seems to be solved. as fas as I try cartesian_ddg, check the computer whther has beened totally compilation. Thanks,

Merry Christmas

Mon, 2023-12-25 05:41
paulbo