Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2007, 10:29 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default How to install Amarok-1.4.4 on PC-BSD 1.3
Ok simple problem, the PBI on pbidir now don't work with PC-BSD 1.3. It can't play any music ! Kinda worthless for a jukbox eh? OK heres how to get some thing useful. This assumes a PC-BSD 1.3 system who knows what the future lies.

You have a choice, hazard packages or compile it (recomended) go do section 2 before running 'pkg_add -r amarok' if you dare that road. From here on in I assume you want to compile amarok from ports.

Section 1

First things first if you have not installed the ports collection do so now. K-Menu->Settings->System Administration->PC-BSD System->Tasks Tab->Fetch Ports. Alternitivly run portsnap fetch extract from the terminal instead once we open it.

Go to the K-Menu->Run Dialog. Click 'Options' and select run as different user.

Command: konqueror
Username: root
Password: YourRootPassword

Click OK and it will open a konqueror session as root. If you don't like run dialogs then go to K-Menu->System->More Applications->File Manager - Super User Mode. Now I just have to shout it: BE VERY CAREFUL with this window as it is running konqueror as root, for example you could delete your entire hard drive if you wanted. So don't ! Clear the address bar and type in

/usr/ports

and press enter. It should be full of folders and files like this (as of 2007-01-03)

Code:
accessibility
arabic
archivers
astro
audio
benchmarks
biology
cad
chinese
comms
converters
databases
deskutils
devel
distfiles
dns
editors
emulators
finance
french
ftp
games
german
graphics
hebrew
hungarian
irc
japanese
java
korean
lang
mail
math
mbone
misc
multimedia
net
net-im
net-mgmt
net-p2p
news
packages
palm
polish
portuguese
print
russian
science
security
shells
sysutils
textproc
ukrainian
vietnamese
www
x11
x11-clocks
x11-fm
x11-fonts
x11-servers
x11-themes
x11-toolkits
x11-wm
Double click on the 'audio' directory, now find the directory called 'amarok' and double click on it.

Section 2

Do you or Did you have Amarok installed from PBI? If so uninstall it.

K-Menu->Settings->System Administration->PC-BSD Software Manager

Or you can use the PBIdelete command when we open a root konsole.

PBIdelete -list
Will list all installed PBI

PBIdelete -remove Exact_PBI_Name_As_Show_By_-list

Now since this PBI errently leaves a few files behind that will break the port intsall we have to remove them. Since doing it by hand is better done from the CLI and we are probably a lazy sort. Lets use a shell script. Switch back to konqueror and right click on empty space in the file manager view ->Create New->Text File. Name it 'die.sh' or any thing you want. Double click on the file in konqueror and it will open it in KWrite. Paste the following in it then save and close it.

Code:
#!/bin/sh
# die.sh remove broken symlinks form amarok.pbi
# found in /usr/local/lib and /usr/local/lib/kde3

for B in `file /usr/local/lib/kde3/libamarok* | grep "broken symbolic link" | sed 's/:.*//g'`
do
        rm $B
done

for b in `file /usr/local/lib/libamarok* | grep "broken symbolic link" | sed 's/:.*//g'`
do
        rm $b
done
Now right click on the file->Properties->Permissions->Is executable. Click Tools->Open Terminal on konquerors top menu (or press F4). This will launch a root konsole. Type the following and press enter (use the name of the file)

Code:
./die.sh
This should take care of business. Now we are ready to build amarok.

Section 3

Make sure your connected to the internet, now type the following

Code:
portinstall audio/amarok
Alternitivly you could type

Code:
make install clean
or you could use a program such as kports, dbsd-pkgmgr, bpm portmaster, portmanager or what ever there may be to interest you.

It should fetch some files and give you a little dialog asking for what make options you want. The defaults should be fine but you might want to enable a few, do so by using the up and down arrows to select and the spacebar to toggle. When done press the 'o' key.

Sit back and relax. Most of what amarok needs to build should be pre-installed by PC-BSD v1.3 and I don't know of any conflicts but it will take awhile to build. Maybe 30~120minutes depending on your system specs.

It should install gnome-mime-data, gnome-vfs, kde-xdg-env, and amarok, maybe gnome_subr I'm not sure OTTOMH if thats in PC-BSDv1.3 or not.

Section 4

Ok, now what if you want to play some stuff that relies on codecs? Well you have two choices, install the multimedia/win32-codecs port which tends to get broken or forbidden every now and then for security or licensing reasons and then eventually fixed 8=)

OR you can install the AllCodecs PBI from http://www.pbidir.com its probably less secure if your into a lot of quick time movies or some thing but it makes life easier. Once you have it installed open a konsole, K-Menu->System->More Applications->Terminal Program - Super User Mode. Or use the Run Dialog like we did for konqueror. Type the following (note that you may have to change the version/date numbers)

Code:
ln -s /Programs/AllCodecs20061022/ /usr/local/lib/win32
Now so this is cleaned up when AllCodecs.pbi is removed we should modify its remove script, i'd suggest using the 'ee' program for simplicity. Type in konsole

Code:
ee /Programs/AllCodecs20061022/PBI.RemoveScript.sh
You will see a line that says "rm /usr/lib/win32/$c" insert below that a line that says "rm /usr/local/lib/win32/$c" Heres a copy of mine

Code:
#!/bin/sh
CODECS=`ls /Programs/${1}/codecs/`
LIBDVDCSS=`ls /Programs/${1}/libdvdcss/`

for c in $CODECS
do
	rm /usr/lib/win32/$c
	rm /usr/local/lib/win32/$c
done

for d in $LIBDVDCSS
do
	rm /usr/local/lib/$d
done
Congratulations you just worked around a problem with the Amarok PBI and the PC-BSDv1.3 release and should now be able to rock and roll with Amarok blasting your MP3s, OGGs and such. At the moement I'm listing to bbc radio 1
Reply With Quote
  #2  
Old 02-03-2007, 04:11 PM
ranran ranran is offline
Senior Member
 
Join Date: Nov 2006
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Quote:
or you could use a program such as dbsd-pkgmgr
I believe is the Desktop BSD package Manager, correct? Could not locate on ports web page. Is it in ports somewhere?
Reply With Quote
  #3  
Old 02-03-2007, 10:12 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
You might have to portupgrade or install sysutils/desktopbsd-tools I'm not sure actually.

I've never tried it.
Reply With Quote
  #4  
Old 02-04-2007, 02:20 AM
ranran ranran is offline
Senior Member
 
Join Date: Nov 2006
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Quote:
You might have to portupgrade or install sysutils/desktopbsd-tools
It's part of the DBSDtools set. Thanks dude 8)
Reply With Quote
  #5  
Old 09-18-2007, 10:45 AM
jnilsson jnilsson is offline
Junior Member
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I found an error while compiling Amarok and it can be solved as following:

http://forums.pcbsd.org/viewtopic.php?t=9165&highlight=


Regards,

J
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
amarok 1.4.2 Dingens The Lounge 3 08-29-2006 03:25 AM
amarok does not run! Dingens General Questions 4 02-05-2006 08:41 PM


All times are GMT. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.