Install on Ubuntu 21.10

Moderators: cyao, soliday

Post Reply
Adam_Dixon
Posts: 12
Joined: 05 Nov 2021, 08:33

Install on Ubuntu 21.10

Post by Adam_Dixon » 12 Nov 2021, 04:32

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

soliday
Posts: 369
Joined: 28 May 2008, 09:15

Re: Install on Ubuntu 21.10

Post by soliday » 12 Nov 2021, 10:28

I have not tried building it with Ubuntu 21.10 yet. I will get back to you later today with a solution.

Adam_Dixon
Posts: 12
Joined: 05 Nov 2021, 08:33

Re: Install on Ubuntu 21.10

Post by Adam_Dixon » 12 Nov 2021, 11:05

That's great, looking forward to hearing your solution.

-Adam

soliday
Posts: 369
Joined: 28 May 2008, 09:15

Re: Install on Ubuntu 21.10

Post by soliday » 12 Nov 2021, 16:33

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.

Adam_Dixon
Posts: 12
Joined: 05 Nov 2021, 08:33

Re: Install on Ubuntu 21.10

Post by Adam_Dixon » 13 Nov 2021, 10:35

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

soliday
Posts: 369
Joined: 28 May 2008, 09:15

Re: Install on Ubuntu 21.10

Post by soliday » 13 Nov 2021, 10:52

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.

Adam_Dixon
Posts: 12
Joined: 05 Nov 2021, 08:33

Re: Install on Ubuntu 21.10

Post by Adam_Dixon » 13 Nov 2021, 14:01

Got it all running now, thanks a lot for the help!

Post Reply