Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: rattfink on June 04, 2019, 07:55:23 AM

Title: Help Installing on Ubuntu 19.04
Post by: rattfink on June 04, 2019, 07:55:23 AM
Has anyone tried installing attractmode on Ubuntu 19.04? I did a fresh install on an old laptop, got MAME up and running, and am trying to install a front end and throw everything in an arcade cabinet i picked up. I'm having issues installing this software. I get errors stating there is no release file. Is it because i'm running too new a version of Ubuntu? Is there any way around this? Linux newbie here, still learning all this stuff!
Title: Re: Help Installing on Ubuntu 19.04
Post by: pecosdave on June 06, 2019, 10:38:32 AM
There's really not enough info to go on.  We need more context to know when and where that error pops up so we even have a clue as to what part of the system we're trouble-shooting.

I made a video walk-through on how to do this and something else on a Debian/Ubuntu drerived system.  It has lots of links and written documentation.  The opening part of the video/documentation has to do with installing Attractmode.  It moves on to other things from there.

Take a look, this might answer your question.  If it doesn't be very specific about what part of the process the break-down happens in.

https://davetech.asuscomm.com/attract/
Title: Re: Help Installing on Ubuntu 19.04
Post by: KTURNER on June 07, 2019, 10:08:31 AM
I had a heck of a time installing it on Linux. I eventually had to go with an older version. I eventually gave up on it because my videos kept locking up. Apparently my video drivers were not supported.
Title: Re: Help Installing on Ubuntu 19.04
Post by: iOtero on June 07, 2019, 10:38:19 AM
To me, in Lubuntu 16.04 it works perfectly for me on a Samsung N120 Netbook with 2GB of RAM from 2009. :-[
Title: Re: Help Installing on Ubuntu 19.04
Post by: rattfink on June 09, 2019, 05:40:00 AM
There's really not enough info to go on.  We need more context to know when and where that error pops up so we even have a clue as to what part of the system we're trouble-shooting.

I made a video walk-through on how to do this and something else on a Debian/Ubuntu drerived system.  It has lots of links and written documentation.  The opening part of the video/documentation has to do with installing Attractmode.  It moves on to other things from there.

Take a look, this might answer your question.  If it doesn't be very specific about what part of the process the break-down happens in.

https://davetech.asuscomm.com/attract/

Thanks for being willing to help! And for the great information! First i try to install the repository  by typing the following in a terminal: sudo add-apt-repository ppa:daveg/attract

Then the breakdown happens and I get all the errors of there not being a release file. I understand there is not an update for my version of Ubuntu, but can't I install it for the previous version? Here's a screen capture of what happened:
Title: Re: Help Installing on Ubuntu 19.04
Post by: rattfink on June 09, 2019, 05:45:09 AM
To me, in Lubuntu 16.04 it works perfectly for me on a Samsung N120 Netbook with 2GB of RAM from 2009. :-[
My laptop might be older than that :'( It's an old Thinkpad Intel Core 2 Duo, 3gb of ram. Should be enough for old arcade games though.
Title: Re: Help Installing on Ubuntu 19.04
Post by: rattfink on June 09, 2019, 05:46:33 AM
I had a heck of a time installing it on Linux. I eventually had to go with an older version. I eventually gave up on it because my videos kept locking up. Apparently my video drivers were not supported.
I'm having some video/graphic issues I need to sort out also. I THINK this laptop has Nvidia graphics, so I will try to find updated drivers.
Title: Re: Help Installing on Ubuntu 19.04
Post by: pecosdave on June 13, 2019, 01:24:15 PM
First i try to install the repository  by typing the following in a terminal: sudo add-apt-repository ppa:daveg/attract

Yeah, I've always had a break-down at that point.  I've never once successfully installed AttractMode via repository/.deb files.  There's a version mismatch of something or another every time I've ever tried.

It compiles from source a lot easier than figuring out the repository issues.  I've compiled it from source on at least four occasions now, I've tried it from packages at least three times.
Title: Re: Help Installing on Ubuntu 19.04
Post by: rattfink on June 19, 2019, 07:24:16 PM
First i try to install the repository  by typing the following in a terminal: sudo add-apt-repository ppa:daveg/attract

Yeah, I've always had a break-down at that point.  I've never once successfully installed AttractMode via repository/.deb files.  There's a version mismatch of something or another every time I've ever tried.

It compiles from source a lot easier than figuring out the repository issues.  I've compiled it from source on at least four occasions now, I've tried it from packages at least three times.

Well I do appreciate all the tips. I've looked at your videos and website. I've scoured the web for help also. I may be too much of a Linux noob to get this operational. I'm trying to compile it, but still running into issues that I just don't understand. I know just enough about Linux to be dangerous. Current issue:
Title: Re: Help Installing on Ubuntu 19.04
Post by: rattfink on June 19, 2019, 07:25:55 PM
see pic
Title: Re: Help Installing on Ubuntu 19.04
Post by: Favdeacon on June 19, 2019, 10:11:20 PM
Did you install the packages that are reported as missing? Most of them listed in the compilation instructions (https://github.com/mickelson/attract/blob/v2.5.1/Compile.md) as requirements.

If not, this should install their development versions (-dev) that are needed for compilation:

Code: [Select]
sudo apt install libavformat-dev libavcodec-dev libavutil-dev libswscale-dev openal-dev

You may also need their runtime files to run AM after its compilation. Look up their names without "-dev" on https://packages.ubuntu.com/ to find their full package names for Ubuntu 19.04 (disco), e.g. "libswscale5". Then exchange their -dev names with those in the above command.

Finally, although your screenshot doesn't show them, you also may need swresample or avresample in their dev and/or runtime versions, since they are also listed in the compilation instructions.

edit: By the way, it would be better if you'd post any errors etc. as text in a code block like I did with my command above. Screenshots take up a lot of space, can only be seen by logged in users, and don't allow quoting or copy & paste if someone wants to address specific parts of them. Just a friendly advice. :)
Title: Re: Help Installing on Ubuntu 19.04
Post by: pecosdave on June 20, 2019, 12:11:14 PM
Favdeacon gives good advice.

When something is missing when trying to compile you need to install it.  If you've got a full GUI going on load up your package manager (I like synaptic) and just look for the name of the missing package.  If you don't have a full blown GUI you can type:

apt list |grep -i missing-item

You should find the name of the package that has the missing item - probably.  Then you can apt install the missing item.
Title: Re: Help Installing on Ubuntu 19.04
Post by: rattfink on June 22, 2019, 02:54:50 PM
After trying many things, I re-booted my system and it was taking forever. There was all kinds of script running and running and running. I went to work, came home, still booting.... 12 hours later. I don't know what I did, but I was about to give up on everything. I re-installed Ubuntu and decided to try using retropie with emulationstation. I had that all working within 2 hours. I may just stick with that...... I really like how attract mode looks, but I may use it with a Windows system as that would be more my level at this point. I'll stick with retropie/emulationstation for Ubuntu. Thanks everyone who took time to help me, I really do appreciate it!
Title: Re: Help Installing on Ubuntu 19.04
Post by: erevans on July 12, 2019, 08:34:19 PM
Does this still work?
http://forum.attractmode.org/index.php?topic=2227.msg15101#msg15101
Title: Re: Help Installing on Ubuntu 19.04
Post by: keilmillerjr on July 13, 2019, 12:10:35 AM
I have compiled attract on raspbian lite and arch linux quite a few times without issues. 🤔
Title: Re: Help Installing on Ubuntu 19.04
Post by: Favdeacon on July 25, 2019, 10:07:02 PM
After trying many things, I re-booted my system and it was taking forever. There was all kinds of script running and running and running. I went to work, came home, still booting.... 12 hours later. I don't know what I did, but I was about to give up on everything.
It would've been interesting which processes were running at that time exactly. You can see (and maybe show us) the running processes sorted by CPU and memory usage with the command top, or htop for a more colorful view. Similarly, the disk activity of processes can be show by iotop. You may have to install the latter two from the official sources in a standard Ubuntu system, but that means they're only one sudo apt install htop iotop away.

I know you already gave up, so this is meant as an advice for the future. Many of us long-time Linux users like to examine and maybe solve a problem instead of giving up "too soon"â„¢.  :) But it's your setup and anything that works for you is okay.

edit: just some wording corrected.
Title: Re: Help Installing on Ubuntu 19.04
Post by: akafox on August 17, 2019, 02:00:54 PM
I can run Attract Mode without problem..well that was I COULD until I updated from 16.04 to 18.04 I get this error:

Code: [Select]
attract: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by attract)
now I can install the package needed from the package manager..however it wants to remove some of my programs (needed!) if I do so.
For now I will be okay using an older version of linux for my game machine..ray will look into it I am sure..

*WAVES MY PAW AND BARKS LOUDLY IN RAYGUN'S DIRECTION*

hmm..I might try compiling it now on the updated system..I'll get back to you
Title: Re: Help Installing on Ubuntu 19.04
Post by: akafox on August 17, 2019, 02:13:15 PM
I can run Attract Mode without problem..well that was I COULD until I updated from 16.04 to 18.04 I get this error:

Code: [Select]
attract: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by attract)
now I can install the package needed from the package manager..however it wants to remove some of my programs (needed!) if I do so.
IF I didn/t need the programs I would just let the package manager remove them and I am sure everything would be fine. On my games machine I will be okay using an older version of linux for my game machine..ray will look into it I am sure..

*WAVES MY PAWS AND BARKS LOUDLY IN RAYGUN'S DIRECTION*

hmm..I might try compiling it now on the updated system..I'll get back to you

nope still get the same error
Title: Re: Help Installing on Ubuntu 19.04
Post by: Favdeacon on August 17, 2019, 03:10:24 PM
This seems (https://github.com/curl/curl/issues/2433) to (https://askubuntu.com/questions/1087576/version-curl-openssl-3-not-found) be (https://askubuntu.com/questions/1061431/how-to-have-both-libcurl3-and-libcurl4-installed-at-same-time) (three links) a common problem in 18.04 with applications that rely on libcurl3 instead of the newer libcurl4 that comes with 18.04. Unfortunately, it seems that both can't be installed at the same time in Ubuntu.

The only promising solution that I found is to install a custom libcurl that serves both APIs #3 and #4:

https://launchpad.net/~xapienz/+archive/ubuntu/curl34

Maybe that is worth a try, but I didn't test it myself. I just searched the web a bit about it. But keep in mind that any PPA is not part of the official software sources and thus, a potential security risk.

Title: Re: Help Installing on Ubuntu 19.04
Post by: akafox on September 03, 2019, 03:25:58 PM
okay I'll take a crack at it..I'll have to run from a USB drive but it will be 19.04 and i'll let you know if i have any luck. It's really strange though that i can not run AM not after updating my system.

@Favdeacon thanks for the info but yeah as it IS a risk I can't take it with my system...
Title: Re: Help Installing on Ubuntu 19.04
Post by: Favdeacon on September 04, 2019, 10:11:58 AM
It's really strange though that i can not run AM not after updating my system.

According to a developer of curl (https://github.com/curl/curl/issues/2433#issuecomment-377046239), the Ubuntu package maintainers changed something in curl, and that broke some applications. AM seems to be one of them.

I am looking forward to hear from you in this matter. You may also try this solution (https://github.com/curl/curl/issues/2433#issuecomment-392661742) from the same bugreport.
Title: Re: Help Installing on Ubuntu 19.04
Post by: akafox on June 05, 2020, 09:49:36 AM
really late reply I know...but just so it is here..

I can run AM on my system now after Attract Mode was updated. Now I am on 20.04 and still working perfect!
Title: Re: Help Installing on Ubuntu 19.04
Post by: Favdeacon on June 05, 2020, 10:31:05 AM
Glad to hear, have fun with your system.

By the way, I like your signature. :)