Page 1 of 1

Install on Ubuntu 21.10

Posted: 12 Nov 2021, 04:32
by Adam_Dixon
Hi all,

I am trying to install ELEGANT and SDDSToolkit for my new laptop but I’m getting an error when I try to build the rpms. The laptop is running on the ubunutu 21.10 operating system, so I have been using the linux guide on the website (https://www.aps.anl.gov/Accelerator-Ope ... uide_Linux). I have previously installed ELEGANT and SDDSToolkit on another laptop (running an older version of ubuntu) with the same guide and no issues.

After running the chmod a+x Build-AOP-RPMs and ./Build-AOP-RPMS commands, from the selection I’m trying to build the rpms for SDDS programs. I get an error when building SDDS RPM package. The last few lines in the terminal are shown below:

Building SDDS RPM package. This may take a minute.
Building target platforms: x86_64
Building for target x86_64
install: cannot stat 'sdds2dpfit': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.1TdFSM (%install)
Bad exit status from /var/tmp/rpm-tmp.1TdFSM (%install)
New RPM file in ~/rpmbuild/RPMS/x86_64
Install with alien -i
Cleaning up
Building SDDS DEV RPM package. This may take a minute.
Building target platforms: x86_64
Building for target x86_64
New RPM file in ~/rpmbuild/RPMS/x86_64
Install with alien -i
Cleaning up
Done


I get the bad exit status error and I’m only left with SDDS dev rpm in the directory ~/rpmbuild/RPMS/x86_64.

Have I made a mistake? Is it unsupported on ubuntu 21.10 as I know this is the most recent version?

- Adam

Re: Install on Ubuntu 21.10

Posted: 12 Nov 2021, 10:28
by soliday
I have not tried building it with Ubuntu 21.10 yet. I will get back to you later today with a solution.

Re: Install on Ubuntu 21.10

Posted: 12 Nov 2021, 11:05
by Adam_Dixon
That's great, looking forward to hearing your solution.

-Adam

Re: Install on Ubuntu 21.10

Posted: 12 Nov 2021, 16:33
by soliday
I managed to get all the RPMs to build and put them up on the software download page. The Build-AOP-RPMs script now also works on Ubuntu 21.10.

Re: Install on Ubuntu 21.10

Posted: 13 Nov 2021, 10:35
by Adam_Dixon
Thanks again. I have tried to build the RPMs again by re-downloading the Build-AOP-RPMs file, and I still seem to be having problems. Instead now I get this error:

Building SDDS RPM package. This may take a minute.
Building target platforms: x86_64
Building for target x86_64
install: cannot stat 'mecho': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.F6N6hN (%install)
Bad exit status from /var/tmp/rpm-tmp.F6N6hN (%install)
New RPM file in ~/rpmbuild/RPMS/x86_64

Then when I tried to to install the pre-built SDDSToolkit RPM from the download page instead of building myself, the file that downloads is empty and clicking the download link shows this error:

The requested URL /downloads/SDDSToolKit-5.0-1.ubuntu.21.10.x86_64.rpm was not found on this server.

Instead of showing displaying the file.

-Adam

Re: Install on Ubuntu 21.10

Posted: 13 Nov 2021, 10:52
by soliday
I fixed the download link.

As for building it with the script. I would recommend running with the sudo command so that it is able to install any missing system development packages.

Re: Install on Ubuntu 21.10

Posted: 13 Nov 2021, 14:01
by Adam_Dixon
Got it all running now, thanks a lot for the help!