Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto install for Arch/Manjaro #160

Merged
merged 7 commits into from
Aug 11, 2023
Merged

Conversation

francisuk1989
Copy link

@francisuk1989 francisuk1989 commented Aug 8, 2023

Tested on Arch Linux 2023.08.01 and Manjaro XFCE 22.1.3 Minimal and everything works great!

Arch Linux
https://archlinux.org

Manjaro
https://download.manjaro.org/xfce/22.1.3/manjaro-xfce-22.1.3-minimal-230529-linux61.iso

Notes for compiling

(1) When compiling and building mbelib, It seems to work ok and look like is installed but when running .... Its also the same issue with itpp.

[archlinux ~]# dsd-fme -h
dsd-fme: error while loading shared libraries: libmbe.so.1: cannot open shared object file: No such file or directory

Lucky mbelib is in arch linux repo and can be installed by pacman.

sudo pacman -S mbelib

Tested on Arch Linux 2023.08.01 and Manjaro XFCE 22.1.3 Minimal

Arch Linux
`https://archlinux.org`

Manjaro
`https://download.manjaro.org/xfce/22.1.3/manjaro-xfce-22.1.3-minimal-230529-linux61.iso`

Notes

(1) When compiling and building **mbelib**, It seems to work ok and look like is installed but when running .... Its also the same issue with itpp.

[archlinux ~]# dsd-fme -h
`dsd-fme: error while loading shared libraries: libmbe.so.1: cannot open shared object file: No such file or directory`

Lucky mbelib is in arch linux repo and can be installed by pacman.

`sudo pacman -S mbelib`
@dreamcoderuk
Copy link

Awesome, apologies I have been busy with uni etc, I managed to get it installed without much effort but brilliant work! thnaks

@lwvmobile
Copy link
Owner

I can't remember right off of the top of my head, but pretty sure you are supposed to copy and paste the libmbe.so and/or libmbe.a files to the /usr/local/lib for it to work properly, either that, or use an export path to point it to where ever it gets copied to by default when make install is run for mbelib. Or maybe that's where it goes by default, and you need it linked or copied to /usr/lib instead. I seem to have the same files in both places, so I can't remember which is which now.

 ╭─lwvmobile@B450M in ~ via C v13.2.1-gcc via  v3.11.3 took 8ms
 ╰─λ ls /usr/local/lib/libmbe.
libmbe.a       libmbe.so      libmbe.so.1    libmbe.so.1.3 


 ╭─lwvmobile@B450M in ~ via C v13.2.1-gcc via  v3.11.3 took 8ms
 ╰─λ ls /usr/lib/libmbe.
libmbe.a       libmbe.so      libmbe.so.1    libmbe.so.1.3 

When I have a chance, I'll try out the script in a clean install, and see if I can make any tweaks to it.

@dreamcoderuk
Copy link

dreamcoderuk commented Aug 9, 2023

Yes you need to copy it over libmbe.so

@francisuk1989
Copy link
Author

I can't remember right off of the top of my head, but pretty sure you are supposed to copy and paste the libmbe.so and/or libmbe.a files to the /usr/local/lib for it to work properly, either that, or use an export path to point it to where ever it gets copied to by default when make install is run for mbelib. Or maybe that's where it goes by default, and you need it linked or copied to /usr/lib instead. I seem to have the same files in both places, so I can't remember which is which now.

Yes you need to copy it over

Thanks, ill make a fresh install tomorrow over on a VMWare and let you know how that goes.

When I have a chance, I'll try out the script in a clean install, and see if I can make any tweaks to it.

Not a problem, Sounds great.

Always run sudo pacman -Syu first

Had a few packages with incorrect names;
Included cloning mbelib w/ ambe_tones
copy the libmbe files to /usr/local/lib

Random Notes
Only need to copy libmbe.so into /usr/lib/

Everything Worked on a clean image/restore point first time, no issues.
@lwvmobile
Copy link
Owner

I had a few things to fix (a few named packages were wrong) and I also have a more up to date mbelib cloning and installing, and copying the libmbe.so file to where it needs to go. Everything installed first time, no complaints on a clean restore point in the VM on the Majaro XFCE iso you linked to.

git clone /~https://github.com/lwvmobile/dsd-fme
### For branch v2.1b - git clone --branch v2.1b /~https://github.com/lwvmobile/dsd-fme
cd dsd-fme
git checkout v2.1b
sudo cp tone8.wav /usr/share/
sudo cp tone24.wav /usr/share/
sudo cp tone48.wav /usr/share/
Copy link
Author

@francisuk1989 francisuk1989 Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 40 (At the end) - Do you think it might a good idea to remove the dsd-fme and other packages for a clean up?

something like either

  1. Have a choice?
echo Do you wont to clean up the dsd-fme and mbelib folders
Yes
No

or just do it automatically.

cd ..
sudo rm -R dsd-fme
sudo rm -R mbelib

However ithis would affect /~https://github.com/lwvmobile/dsd-fme/blob/main/rebuild.sh

Ok.

Installed from Arch (No desktop gui) and can confium that everything works nicely!

Build Version:  v2.1-5-g44a00ab
MBElib Version: 1.3.3T

@lwvmobile
Copy link
Owner

Just my personal opinion, I would leave any downloaded files and cloned folders where they are, let the user delete them if they want, or leave them for easy re-install and to pull the updates instead of having to build and install the entire thing again from scratch. Also, its hard to make your own modifications if the folders get deleted by default.

@lwvmobile
Copy link
Owner

Okay, I think I'm done doing all the little things I can think of for this script, if there are no other objections or ides, we can go ahead and merge this pull request.

Add Arch information to the install notes page
@lwvmobile lwvmobile merged commit b31a714 into lwvmobile:main Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants