SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to get amarok 2 to use mysql on Slackware-current. I've done a few searches and it seems it needs re-compilation, as I can find some people saying "I just used the slackbuild script" which I have tried, only for it to bomb out with errors regarding mysql, as so:
tar: /downloads/amarok/../../../../../source/ap/mysql/mysql*.tar.?z*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: No libmysqld.a. Strongly advised to put a MySQL source .tar.bz2 in
this directory and try again...
I thought I might have the incorrect mysql package, so I downloaded a few more, converted one from a tar.gz to a bz2, and still I get the same error.
Has anyone got this to work successfully? I'm at a loss at present for new ideas and would welcome any support!
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Looking at the Slackbuild it looks like amarok needs the mysql source. Download it - you can find it here - and put it under the amarok source code directory in a directory called "mysql/". Then change the relevant line in the Slackbuild from this :
I attempted what you've suggested and indeed it did appear that mysql was found - there was a whole screen of what appeared to be the archive unpacking - I still come up with this error at the end:
ERROR: No libmysqld.a. Strongly advised to put a MySQL source .tar.bz2 in this directory and try again...
No. Amarok-2.1.1 (as of 13.0rc1) *is* definitely compiled with support for mysql.
BUT, you are *not* able to select a mysql server, because amarok2 currently has only support for Mysql Embedded (which is libmysqld.a).
If you really want to use a mysql server with amarok you will either need <=1.4.x or >2.1.x
Recompiling amarok 2.1.1 will not magically get you a feature that's simply not there in the code.
I know that Amarok 2 uses an embedded version of mysql, but I think I must have misunderstood something somewhere. I could have sworn I read a blog on the Amarok site where the dev's talked about using one database and sharing that amongst multiple computers (which is what I am aiming to achieve) - and surely at the moment in the current state, that can't be possible? I mean, unless there's some way to share out that embedded version so I can connect to it from other computers in rooms in my house, the only result I can see is that each time I started a machine/Amarok, it'd have to re-scan a network share rather than just use a central database.
I've seen screens (and how-to's) with this using previous versions of Amarok, so I guess I'll use one of those or just wait until the functionality is implemented in a newer build of the app, because I can't believe they'd take out such great functionality.
I think you read the same blog I read, but it's talking about amarok 2.2.
I don't know if you can share an embedded db, but if it is, it's probably not that easy.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Oh well - glad you got it sorted. Sorry I should have paid more attention to what you where trying to actually achieve rather than just helping with the build ! I'm not really that familiar with amarok anyway.
Anyway - for anyone wishing to rebuild amarok and in the interests of completion I have attached an altered amarok.Slackbuild(.txt) that takes account of the suggested directories and builds the package without the stock Slackware build directories being present. It also adjusts for the source being in a .tar.xz file. It may help someone with a new build. Note that this has the Slackware configuration options in place so the resulting application will be the same as the stock Slackware one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.