LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-24-2014, 05:23 AM   #31
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56

Quote:
Originally Posted by Ztcoracat View Post
Code:
gcc  -g -O2   -o mtpfs mtpfs-mtpfs.o mtpfs-id3read.o -pthread -lfuse   -pthread -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0   -lmtp -lusb-1.0   -lmad -lm -lid3tag

[redcat@localhost mtpfs-1.1]$ make install
make[1]: Entering directory `/home/redcat/Downloads/mtpfs-1.1'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c mtpfs '/usr/local/bin'
/usr/bin/install: cannot create regular file ‘/usr/local/bin/mtpfs’: Permission denied
make[1]: *** [install-binPROGRAMS] Error 1
make[1]: Leaving directory `/home/redcat/Downloads/mtpfs-1.1'
make: *** [install-am] Error 2
Not sure what this means--
"easy" (when you do this every day ); compile was successful, but you tried to install into /usr/local/bin from user, not root, and have no permission to do that: "ls -l /usr/local/ | grep bin" show you "rwxr-xr-x root root", meaning only root can write in it, then?

just use "sudo make install", or do "make install" as root

ADD: as you see, program is installed in /usr/local/bin instead of /usr/bin, this is a default for every program you build manually, to change it, add "--prefix=/usr" to the ./configure, as "./configure --prefix=/usr" (as said by JohnVV)
 
Old 01-24-2014, 05:50 PM   #32
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
If I understand you gengisdave; I need to type this at the prompt?

Code:
root@redlocalhost~]$./configure --prefix=/usr/bin
Should the word prefix literally be typed? Or should I be replacing 'prefix' with some other name?
 
Old 01-24-2014, 05:56 PM   #33
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56
"prefix" is a parameter for configure, it tells to the script that will generate the makefiles where we want the files go, saying --prefix=/usr, the makefile will be generated so binaries will go in /usr/bin, include in /usr/include, libraries in /usr/lib(64) etc
 
Old 01-24-2014, 06:19 PM   #34
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gengisdave View Post
"prefix" is a parameter for configure, it tells to the script that will generate the makefiles where we want the files go, saying --prefix=/usr, the makefile will be generated so binaries will go in /usr/bin, include in /usr/include, libraries in /usr/lib(64) etc
Thanks for explaining. Still having trouble and I lack the experience that you have.

Code:
[redcat@localhost mtpfs-1.1]$ ./configure --prefix=/usr/bin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for MTP... yes
checking for GLIB... yes
checking for MAD... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[redcat@localhost mtpfs-1.1]$ su
Password: 
[root@localhost mtpfs-1.1]# make install
make[1]: Entering directory `/home/redcat/Downloads/mtpfs-1.1'
test -z "/usr/bin/bin" || /usr/bin/mkdir -p "/usr/bin/bin"
  /usr/bin/install -c mtpfs '/usr/bin/bin'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/home/redcat/Downloads/mtpfs-1.1'
[root@localhost mtpfs-1.1]#
 
Old 01-24-2014, 06:51 PM   #35
John VV
Guru
 
Registered: Aug 2005
Posts: 12,904

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
Quote:
./configure --prefix=/usr/bin
no , almost but not quite

/usr NOT /usr/bin

the root "tree" for user space is /usr

if you were to use /usr/bin it would install into the wrong folders
/usr/bin/bin
/usr/bin/lib64
/usr/bin/include
/usr/bin/share

-- one too many "bin" folders


almost all fedora programs install to /usr
that is the default location for fedora

now you CAN use a secondary location BUT that brings with it some complications
-- for now you really do not want to have to deal with those

so use --prefix=/usr
and things will install just fine
 
Old 01-24-2014, 07:25 PM   #36
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Still not right is it?

Code:
[redcat@localhost mtpfs-1.1]$ ./configure --prefix=/usr 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for MTP... yes
checking for GLIB... yes
checking for MAD... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[redcat@localhost mtpfs-1.1]$ su
Password: 
[root@localhost mtpfs-1.1]# make install
make[1]: Entering directory `/home/redcat/Downloads/mtpfs-1.1'
test -z "/usr/bin" || /usr/bin/mkdir -p "/usr/bin"
  /usr/bin/install -c mtpfs '/usr/bin'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/home/redcat/Downloads/mtpfs-1.1'
Quote:
and things will install just fine
Something still is not going correctly....(I Think) because of the Nothing to be done for 'install-data-am' Am I wrong?
 
Old 01-24-2014, 09:27 PM   #37
John VV
Guru
 
Registered: Aug 2005
Posts: 12,904

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
although "make install" can sometimes be used as a shortcut
it is not a good idea
"make" should be ran as a NORMAL user

as root clean the build folder
there a few ways
start over with a clean extract of the tarball
or run "AS ROOT for this seeing as you ran "make" as root last time
Code:
su 
make distclean
then
as a normal non root user
Code:
./configure --prefix=/usr
make
su
--- root password when asked for ---
make install
 
Old 01-24-2014, 10:19 PM   #38
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Code:
[root@localhost mtpfs-1.1]# make distclean
test -z "mtpfs" || rm -f mtpfs
rm -f *.o
rm -f *.tab.c
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf ./.deps
rm -f Makefile
[root@localhost mtpfs-1.1]#
Trying again exactly in the order you told me.
1) ./configure --prefix=/usr
2)make
3)su
4)make install

Code:
[redcat@localhost mtpfs-1.1]$ ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for MTP... yes
checking for GLIB... yes
checking for MAD... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[redcat@localhost mtpfs-1.1]$ make
make: Nothing to be done for `all'.
[redcat@localhost mtpfs-1.1]$ su
Password: 
[root@localhost mtpfs-1.1]# make install
make[1]: Entering directory `/home/redcat/Downloads/mtpfs-1.1'
test -z "/usr/bin" || /usr/bin/mkdir -p "/usr/bin"
  /usr/bin/install -c mtpfs '/usr/bin'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/home/redcat/Downloads/mtpfs-1.1'
[root@localhost mtpfs-1.1]#
Getting a fresh tarball now-bb
 
Old 01-24-2014, 10:35 PM   #39
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Still looking as I have only been able to find mtpfs for FC 18-
http://rpm.pbone.net/index.php3?stat...tpfs&srodzaj=3

It's probably a bad idea to download the mtpfs tarball for FC 18 and extract it for FC 19? Right?

Last edited by Ztcoracat; 01-24-2014 at 10:44 PM.
 
Old 01-25-2014, 03:33 AM   #40
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56
your last chain was perfect, it's a small packages, it has no libraries, just the binary
 
Old 01-25-2014, 04:48 PM   #41
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gengisdave View Post
your last chain was perfect, it's a small packages, it has no libraries, just the binary
Does that mean I have done all that I can and it's complete?
 
Old 01-25-2014, 06:10 PM   #42
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56
yes, it only install the binary mtpfs in /usr/bin, as told by your configure parameters;

the string "nothing to be done..." is normal during make, as makefile contain a sequence of command to build the package and some of them exist, but have no relevant command, like pressing enter in a shell without entering a command, it does nothing but you have pressed enter
 
Old 01-25-2014, 06:26 PM   #43
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Thank you for explaining that it's normal during make.
I thought something was wrong.

Is there any other steps I need to proceed with?
 
Old 01-25-2014, 06:35 PM   #44
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56
no, just use it (and i'm interested too), just a thing more, if you want to delete it, just do a "make uninstall", you can delete the source folder, and in the future just do "./configure --prefix=/usr" and "make uninstall", remember the prefix you used or the makefile won't find anything

EDIT: the end of the world, my phone as a usbdrive

Last edited by gengisdave; 01-25-2014 at 06:39 PM.
 
Old 01-25-2014, 07:05 PM   #45
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
It's installed and that's good.
http://s1052.photobucket.com/user/Ul...mtpfs.png.html

BTW I also installed 'simple-mtpfs' as Jeremy advised me.
I'm very sorry to say that installing 'mtpfs' & 'simple-mtpfs' has made no difference or at least; so far it hasn't.

You guys are the best!
Thank you allfor teaching me this compilation process!
 
  


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
slack64 and android mtpfs? wufo Slackware 7 01-21-2014 08:00 AM
[SOLVED] mtpfs Only Mounts as Root s3phir0th115 Slackware 4 10-12-2012 06:59 PM
Using creative player in amarok and mtpfs sourceopener Ubuntu 5 08-18-2009 11:16 PM
Installing rpm2targz.tar.bz2 on Fedora Core 2 aala_yo Linux - Software 1 05-11-2005 01:58 PM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 11:58 AM


All times are GMT -5. The time now is 12:46 AM.

Main Menu
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