LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-08-2010, 02:12 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
VirtualBox Install Error


I was trying to install VirtualBox from AUR (http://aur.archlinux.org/packages.php?ID=9753). The problem is that it wants libpng12, which is outdated and makepkg cannot install it. Whan should I do?

Here is what happens:

Code:
$ makepkg -s
==> Making package: virtualbox_bin 3.1.4-3 x86_64 (Mon Mar  8 14:08:56 EST 2010)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
Password: 
libpng12 package not found, searching for group...
error: 'libpng12': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.
 
Old 03-08-2010, 02:18 PM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
libpng12 is in the AUR as well.
http://aur.archlinux.org/packages.php?ID=33795

makepkg won't build something from the AUR. If you use an AUR helper like bauerbill, it will build it for you, or download the PKGBUILD for libpng12 and build it separately first.

EDIT: I should say, makepkg won't automatically download, build, and install dependencies from the AUR. Obviously, it will build something from the AUR.

Last edited by reed9; 03-08-2010 at 02:22 PM.
 
1 members found this post helpful.
Old 03-08-2010, 03:14 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
I am fully aware that makepkg cannot get packages form AUR.

I onec tried yaourt but it was so full an onnoying blinking (!) warnings which I cannot figure out how to answer yes to that I cancelled it and immediately ran "pacman -Rns yaourt".

A few weeks ago I wrote a script called "aur-get" that basically goes through the steps you would manually take to install a package. It's really kludgy and for some reason fails to delete its temporary working directory, but it did the job of installing libpng12 and virtualbox_bin.

Code:
#!/bin/bash

# This script installs Arch Linux packages from the AUR.

tmpdir="aur-get.$$.$RANDOM"
intmpdir="0"

function quit {
	if [ $intmpdir = "1" ]; then
		cd ..
	fi
	rm -r "$tmpdir"
	exit 0
}

# Check if root is executing this

if [ $(id --user) = "0" ]; then
	echo "It is recommended you do not do this as root."
	read -p "Do you want to continue [y/N]: " input
	if [ input != "y" ]; then
		quit
	fi
fi

url='http://aur.archlinux.org/packages/'"$1"'/'"$1"'.tar.gz'

# Make temporary working directory ##########################################

mkdir "$tmpdir"
if [ $? != "0" ]; then
	quit
fi
cd "$tmpdir"
intmpdir="1"

# Download and extract tarball ##############################################

echo ":: Downloading tarball..."
wget $url
if [ $? != "0" ]; then
	quit
fi

echo ":: Extracting tarball..."
tar -vzxf *.tar.gz
if [ $? != "0" ]; then
	quit
fi

rm *.tar.gz

# Ask user to review potentially dangerous files ############################

read -p "Do you want to review all PKGBUILD and .install files [Y/n]: " input
if [ input == "n" ]; then
	true
else
	(find . -name '*.install' -print; \
	find . -name 'PKGBUILD' -print) | \
	while read -r filename; do
		less "$filename"
	done
fi

cd *
if [ $? != "0" ]; then
	quit
fi

read -p "Are you sure you want to make this package [y/N]: " input
if [ "$input" != "y" ]; then
	quit
fi

# Install package ###########################################################

echo ":: Making package and installing dependencies..."
makepkg -s
if [ $? != "0" ]; then
	quit
fi

echo ":: Installing package..."
sudo pacman -U *.pkg.tar.gz
if [ $? != "0" ]; then
	quit
fi

# Remove temporary files ####################################################

cd ..
intmpdir="0"
rm -r $tmpdir

exit 0
 
Old 03-08-2010, 03:49 PM   #4
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
For a while I was just using pbget to fetch PKGBUILDS. But of late I've been switching between bauerbill and packer. Both far more usable that yaourt, IMHO.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtualbox won't start - gconf error a_smith Linux - Software 2 01-13-2010 12:32 PM
virtualbox Error in fedora 11? your_shadow03 Linux - Newbie 1 10-20-2009 03:54 AM
Can't get virtualbox to work - random chars error. Red Squirrel Linux - Software 1 01-25-2009 04:49 PM
VirtualBox Error Mr. Rey Linux - Software 3 08-19-2008 05:26 PM
VirtualBox: VERR_HOSTIF_INIT_FAILED error ubyt3m3 Slackware 5 08-01-2008 03:26 AM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration