LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2013, 08:04 PM   #1
Kogami
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 14.04 LTS
Posts: 21

Rep: Reputation: Disabled
Permission Errors on Tarball Instalation


Hi,

I'm trying to manually install the latest release of flac 1.3.0, and I keep getting this message when I run:

./configure && make && make install

/bin/mkdir: cannot create directory /usr/local/share/doc/flac-1.3.0: Permission denied

Even when I run it as root, I experience the same problem.

Any ideas?

Regards,
Kogami
 
Old 11-07-2013, 08:11 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by Kogami View Post
Hi,

I'm trying to manually install the latest release of flac 1.3.0, and I keep getting this message when I run:

./configure && make && make install

/bin/mkdir: cannot create directory /usr/local/share/doc/flac-1.3.0: Permission denied

Even when I run it as root, I experience the same problem.

Any ideas?

Regards,
Kogami
What is wrong with the package in the repo?

If you insist on doing this just grab the saucy source package

http://archive.ubuntu.com/ubuntu/poo....debian.tar.gz

and build a proper package that you can install with dpkg.

https://help.ubuntu.com/community/CheckInstall
 
1 members found this post helpful.
Old 11-07-2013, 08:40 PM   #3
Kogami
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 14.04 LTS
Posts: 21

Original Poster
Rep: Reputation: Disabled
When I checked, the repos didn't have the right package, as 1.3.0 came out only a couple days ago. But I'll try that method, and see if it works.

Kogami
 
Old 11-07-2013, 08:42 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
You are sudo'ing the 'make install', yes?
If root can't write to /usr/local, then you have a read-only partition (as if it's encountered an error) or it's NFS-mounted.
 
1 members found this post helpful.
Old 11-07-2013, 08:55 PM   #5
Kogami
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 14.04 LTS
Posts: 21

Original Poster
Rep: Reputation: Disabled
Okay, so I repackaged the original extracted tarball into a debian package using checkinstall, installed it, and everything was fine.

Until I actually used it:

flac - Command-line FLAC encoder/decoder version 1.2.1

Right. So I took a new piece of software, put it through checkinstall, and it magically became old software.

Apparently, updating software in linux is the computer equivalent of brain surgery...

Regards,
Kogami
 
Old 11-07-2013, 08:56 PM   #6
Kogami
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 14.04 LTS
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AlucardZero View Post
You are sudo'ing the 'make install', yes?
If root can't write to /usr/local, then you have a read-only partition (as if it's encountered an error) or it's NFS-mounted.
The exact command was:

sudo ./configure && make && make install

I'll try

sudo ./configure && make && sudo make install

Kogami
 
Old 11-07-2013, 09:01 PM   #7
Kogami
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 14.04 LTS
Posts: 21

Original Poster
Rep: Reputation: Disabled
Okay, figured it out.

The problem all along, was that when flac printed the version number, it still said

flac 1.2.1

So for some odd reason, it doesn't SAY that it's updated, but it seems to have the updated capabilities.

Otherwise, both checkinstall and adding sudo to the make install command proved to be accurate.

I apologize for my stupid comments about checkinstall, and for any confusion.

Thank you for your help everyone!

Regards,
Kogami
 
Old 11-07-2013, 09:15 PM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
You're welcome.

Quote:
Originally Posted by changelog
flac (1.3.0-1) unstable; urgency=low

 * Imported Upstream version 1.3.0 (Closes: #527542, #705601).
* Update debian/watch file, thanks Ulrich Klauer (Closes: #710062).
* Revert "Remove manpages from master branch."
* Imported Upstream version 1.3.0
* Convert package to "3.0 (quilt)" source format.
* Remove all patches, they have either been merged upstream or do not
apply anymore (tested).
* Explicitly enable static libraries.
* Simplify debian/libflac-doc.install.
* Bump shlibs for added symbols.
* Remove needless Build-Depends: libid3-3.8.3-dev.
* Update Homepage field.
* Repair upstream manpage regeneration rule.
* Bump Build-Depends: debhelper (>= 9).
* Fix vcs-field-not-canonical.
* Import two patches from upstream GIT:
+ Add missing config.h includes.
+ Fix local_strcat() to terminate string correctly.
* Disable 3DNow! optimizations, enable SSE only on amd64, enable Altivec
only on ppc64, disable ASM optimizations elsewhere.

 -- Fabian Greffrath <fabian+debian@greffrath.com> Fri, 07 Jun 2013 10:24:30 +0200
 
Old 11-07-2013, 09:23 PM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Quote:
Originally Posted by Kogami View Post
The exact command was:

sudo ./configure && make && make install

Yeah, that's not running make and make install as root. the sudo only applies to the first command, as && signifies the start of a new command. So your regular user can't write to /usr, as expected. PS, no need to sudo ./configure or make.
Updating software in Linux is super trivial unless you want the super bleeding edge.
PS - you should specify your distro. Your profile says Mint, but the first reply assumed Ubuntu, but you went with a Debian package? [perhaps my ignorance of Mint is showing]
I have no idea how Mint works, but doesn't the presence of flac_1.3.0-1*deb in the list at http://debian.linuxmint.com/latest/pool/main/f/flac/ mean your desired version [from May] is in Mint already?

Last edited by AlucardZero; 11-07-2013 at 09:24 PM.
 
1 members found this post helpful.
Old 11-07-2013, 10:43 PM   #10
Kogami
LQ Newbie
 
Registered: Jun 2013
Distribution: Ubuntu 14.04 LTS
Posts: 21

Original Poster
Rep: Reputation: Disabled
Mint is based off of Ubuntu and can run Debian packages, but I'll try to fix that in the user profile. I can see I need to revisit basic bash commands...yikes.

Kogami
 
  


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
Compiling from a tarball errors with libz and zlib.h spaceycayce Debian 5 01-03-2013 10:54 PM
errors installing peerguardian linux from tarball Culbert Linux - Newbie 1 01-26-2012 12:05 AM
Permission Errors kauaianspunger Debian 9 03-04-2011 06:20 PM
how can I add a tarball instalation to the rpm database? mcastrillo Linux - Software 1 02-11-2005 11:26 AM
instalation errors on partitons lemonxl Mandriva 6 10-15-2004 01:32 PM


All times are GMT -5. The time now is 06:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration