LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-22-2014, 08:50 PM   #16
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 255

Rep: Reputation: 51

LFS for Linux From Scratch; you have installed missing dependency, but last ./configure failed, so no Makefile was generated, do ./configure again, until it success
 
Old 01-22-2014, 09:20 PM   #17
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gengisdave View Post
LFS for Linux From Scratch; you have installed missing dependency, but last ./configure failed, so no Makefile was generated, do ./configure again, until it success
Oh, yeah, Linux From Scratch. I have spoken to a few members here that have had good success with LFS!

Trying ./configure again.....
Code:
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for MTP... no
configure: error: Package requirements (libmtp >= 1.1.0) were not met:

No package 'libmtp' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MTP_CFLAGS
and MTP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[redcat@localhost mtpfs-1.1]$
Install libmtp--
Code:
[redcat@localhost ~]$ su
Password: 
[root@localhost redcat]# yum install libmtp
Loaded plugins: langpacks
Package libmtp-1.1.6-0.fc19.x86_64 already installed and latest version
Nothing to do
[root@localhost redcat]# 

Try configure once more?
 
Old 01-22-2014, 11:07 PM   #18
John VV
Guru
 
Registered: Aug 2005
Posts: 12,663

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
the configure script is likely looking for the SOURCE HEADERS for "libmtp"
that is provided by the -devel rpms in redhat/cent/fedora
you might want to use the SEARCH option when installing rpm's using yum
--- WARNING this is MY opensuse output ..so....
( replaced zypper with yum )
Code:
su -
yum search libmtp
 
S | Name         | Summary                                            | Type      
--+--------------+----------------------------------------------------+-----------
  | libmtp       | Commandline utilities for access to MTP Players    | srcpackage
i | libmtp-devel | Development files for access to MTP Player library | package   
i | libmtp9      | Library for accessing MTP Players                  | package  

---- then install it if you see it and it is NOT installed already  

 yum install libmtp-devel
 
Old 01-22-2014, 11:26 PM   #19
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
the configure script is likely looking for the SOURCE HEADERS for "libmtp"
that is provided by the -devel rpms in redhat/cent/fedora
you might want to use the SEARCH option when installing rpm's using yum
--- WARNING this is MY opensuse output ..so....
( replaced zypper with yum )
Code:
su -
yum search libmtp
 
S | Name         | Summary                                            | Type      
--+--------------+----------------------------------------------------+-----------
  | libmtp       | Commandline utilities for access to MTP Players    | srcpackage
i | libmtp-devel | Development files for access to MTP Player library | package   
i | libmtp9      | Library for accessing MTP Players                  | package  

---- then install it if you see it and it is NOT installed already  

 yum install libmtp-devel
Thank you!
Code:
Downloading packages:
(1/2): libusbx-devel-1.0.16-3.fc19.x86_64.rpm              |  21 kB   00:00     
(2/2): libmtp-devel-1.1.6-0.fc19.x86_64.rpm                |  76 kB   00:00     
--------------------------------------------------------------------------------
Total                                              119 kB/s |  97 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libusbx-devel-1.0.16-3.fc19.x86_64                           1/2 
  Installing : libmtp-devel-1.1.6-0.fc19.x86_64                             2/2 
  Verifying  : libusbx-devel-1.0.16-3.fc19.x86_64                           1/2 
  Verifying  : libmtp-devel-1.1.6-0.fc19.x86_64                             2/2 

Installed:
  libmtp-devel.x86_64 0:1.1.6-0.fc19                                            

Dependency Installed:
  libusbx-devel.x86_64 0:1.0.16-3.fc19                                          

Complete!

I'll try again.
 
Old 01-22-2014, 11:57 PM   #20
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Code:
configure: error: Package requirements (glib-2.0 >= 2.6                         gthread-2.0 >= 1.2                         gio-2.0 >= 2.6) were not met:

No package 'glib-2.0' found
No package 'gthread-2.0' found
No package 'gio-2.0' found
Looks like 'glib', 'gthread' and 'gio'need installed too.
For the first time really learning this and understand it now I have to ask does this business of
re cursiveness come to and?

knudfl:, gengisdave:,and John VV: I'm greatful for the help you have given me; Thanks!

I will have to continue with these pkg's tomorrow. Have to work in the morning and it's late.
 
Old 01-23-2014, 12:26 AM   #21
John VV
Guru
 
Registered: Aug 2005
Posts: 12,663

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
is looking like a few more -devel rpms need installing

configure is calling "package configure" and THAT program is looking in /ust/lib64/pkgconfig for the " *.pc " files
those are in the *-devel.rpm's

normally it is a good idea to read the two files ( if there ) called
README
INSTALL
/doc
or any pdf or text file or html file in a folder called "doc"

but
the configure script ( if there is one ) can figure out what is missing


i have been known to open a terminal AS ROOT and run yum or zypper

and in a second terminal run the ./configure script ( or ccmake or qmake)

then install what is missing from the "configure" errors
yes bold
it is ALSO a VERY good idea to READ - READ the output of
" ./configure --help " FIRST !!!

one thing that WILL inform you as to the DEFAULT install location
most things will use the Debian default
/usr/local
Fedora DOSE NOT USE THIS location !!!
it is NOT in the system $PATH

fedora uses /usr
or in a non standard location like
/usr/opt/???? ( this is where Libreoffice and KDE3 is installed )

on fedora ( any redhat based distro ) you will ALMOST ALWAYS need to use the "--prefix" option in configure

Code:
cd mtpfs-1.1
./configure --prefix=/usr 
make
su
---- the root password
make install
now READING the output of the --help will help you SET the correct configure line

Last edited by John VV; 01-23-2014 at 12:31 AM.
 
Old 01-23-2014, 08:01 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,521

Rep: Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502
# 20 .
Quote:
No package 'glib-2.0' found
No package 'gthread-2.0' found
No package 'gio-2.0' found
That's all glib2 : # yum install glib2-devel

** Be aware all packages to be used at compile time must be <name>-devel ! !

-
 
Old 01-23-2014, 07:11 PM   #23
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
it is ALSO a VERY good idea to READ - READ the output of
" ./configure --help " FIRST !!!
Didn't know as this is my real first attempt with a tar.gz--

Quote:
fedora uses /usr
or in a non standard location like
/usr/opt/???? ( this is where Libreoffice and KDE3 is installed )

on fedora ( any redhat based distro ) you will ALMOST ALWAYS need to use the "--prefix" option in configure
Wasn't aware of that, Thank You!
I read the Install file. I need to read the Read Me file...so I will do that now before proceeding further until I understand.


Quote:
** Be aware all packages to be used at compile time must be <name>-devel ! !
Got it:-
 
Old 01-23-2014, 07:24 PM   #24
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Reading the Read Me file-

Code:
To mount a device run:

  mtpfs <mount_point>

To unmount do:

  fusermount -u <mount_point>

Note that you may need to be root to do all this if permissions on the
MTP device are not correct

Debugging
---------
To enable debugging info use the --enable-debug option when running ./configure

Acknowledgements
----------------
This wouldn't be possible without libmtp, libusb and fuse.
Sections of code (in id3read.c and mp3file.c) blatently ripped from gnomad
What does sections of code (in id3read.c and mp3file.c) etc......mean?
 
Old 01-23-2014, 08:04 PM   #25
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Code:
configure: error: Package requirements (mad >= 0.15                            id3tag >= 0.15) were not met:

No package 'mad' found
No package 'id3tag' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MAD_CFLAGS
and MAD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[redcat@localhost mtpfs-1.1]$ yum install mad-devel
Loaded plugins: langpacks
You need to be root to perform this command.
[redcat@localhost mtpfs-1.1]$ su
Password: 
[root@localhost mtpfs-1.1]# yum install mad-devel
Loaded plugins: langpacks
No package mad-devel available.
Error: Nothing to do
[root@localhost mtpfs-1.1]# yum install id3tag-devel
Loaded plugins: langpacks
No package id3tag-devel available.
Error: Nothing to do
[root@localhost mtpfs-1.1]#
Code:
Package madplay-0.15.2b-9.fc19.x86_64 already installed and latest version
I thought that "devel" should follow directly after the pkg name.
What is wrong?
 
Old 01-23-2014, 08:13 PM   #26
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 255

Rep: Reputation: 51
madplay-devel? and be happy, it's the last dependencies check (and now i remember why i left redhat)

Edit: it's libmad-devel and libid3tag-devel

Last edited by gengisdave; 01-23-2014 at 08:15 PM.
 
Old 01-23-2014, 08:25 PM   #27
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Code:
Installed:
  libmad-devel.x86_64 0:0.15.1b-16.fc19
Code:
Installed:
  libid3tag-devel.x86_64 0:0.15.1b-15.fc19                                      

Complete!
[root@localhost redcat]#
Ok, now go back to my Downloads directory open the terminal start with 1)./configure than 2)'make' and 'make install'...?

You must have your reasons for leaving RH:-
 
Old 01-23-2014, 09:16 PM   #28
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Code:
mtpfs.c:1269:5: warning: ‘g_static_mutex_get_mutex_impl’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
     return_unlock(ret);
     ^
mv -f .deps/mtpfs-mtpfs.Tpo .deps/mtpfs-mtpfs.Po
gcc -DPACKAGE_NAME=\"MTPfs\" -DPACKAGE_TARNAME=\"mtpfs\" -DPACKAGE_VERSION=\"1.1\" -DPACKAGE_STRING=\"MTPfs\ 1.1\" -DPACKAGE_BUGREPORT=\"Chris\ Debenham\ \<chris@adebenham.com\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mtpfs\" -DVERSION=\"1.1\" -DDEBUG=0 -I.  -DFUSE_USE_VERSION=22 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/libusb-1.0    -DUSEMAD   -g -O2 -MT mtpfs-id3read.o -MD -MP -MF .deps/mtpfs-id3read.Tpo -c -o mtpfs-id3read.o `test -f 'id3read.c' || echo './'`id3read.c
mv -f .deps/mtpfs-id3read.Tpo .deps/mtpfs-id3read.Po
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--
 
Old 01-23-2014, 09:28 PM   #29
John VV
Guru
 
Registered: Aug 2005
Posts: 12,663

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
i happen to prefer yum over apt

but i did leave fedora for opensuse

fedora is a great OS , but after hacking code to get it to build on fedora and the needed reinstall every 6 months
I never was able to get a GOOD inplace upgrade . and gcc tends to be SO new that a lot of source code tends to need to be hacked to build

that is FUN for a bit , but after awhile not so much .


you are using the CURRENT "libmtp-1.1.6.tar.gz" ??? right
and NOT the old 1.1 from 2011

right?

http://sourceforge.net/projects/libm.../libmtp/1.1.6/

from the README it states read the INSTALL file
from that there is this section
Code:
Dependencies
------------

To build libmtp you should only need development files for libusb.
(Often named libusb-devel or similar.) For working with CVS versions
you may need autoconf, automake, libtool, gettext(-devel).

To enable the optional MTPZ support using libgcrypt you need the
libgcrypt library installed as well.
this line
"you may need autoconf, automake, libtool, gettext(-devel)."
in fedora and redhat terms is the "development tools "
Code:
su -
yum groupinstall "Development Tools"
-----------------
---- now fedora did a bit of renaming of software groups so i am not 100% sure of the names anylonger
-----------------
so to find them do a search
Code:
su -
yum grouplist
also you might want to make sure that "libgcrypt" is installed
Code:
su -
yum install libgcrypt-devel libgcrypt
 
Old 01-23-2014, 10:04 PM   #30
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & FC 20
Posts: 2,833
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
I have been operating from "mtpfs-1.1.tar gz-
I did download "libmtp-1.1.6.tar.gz" but have not extracted it.

I used Yum to install libmtp or so I thought. Again, this is my first real attempt with this and I am struggling at this point to understand but not giving up.

I installed Development tools yesterday.

Code:
DEVELOPMENT TOOLS

Installed:
  cvs.x86_64 0:1.11.23-31.fc19             diffstat.x86_64 0:1.57-1.fc19       
  doxygen.x86_64 1:1.8.3.1-2.fc19          git.x86_64 0:1.8.3.1-1.fc19         
  patchutils.x86_64 0:0.3.3-2.fc19         rcs.x86_64 0:5.9.2-1.fc19           
  subversion.x86_64 0:1.7.14-1.fc19        systemtap.x86_64 0:2.4-1.fc19
Quote:
you may need autoconf, automake, libtool, gettext(-devel).
How will I know that?

Code:
[root@localhost redcat]# yum grouplist
Loaded plugins: langpacks
Available environment groups:
   GNOME Desktop
   KDE Plasma Workspaces
   Xfce Desktop
   LXDE Desktop
   Cinnamon Desktop
   MATE Desktop
   Sugar Desktop Environment
   Development and Creative Workstation
   Web Server
   Infrastructure Server
   Basic Desktop
   Minimal Install
Installed groups:
   Development Tools
Available Groups:
   3D Printing
   Administration Tools
   Authoring and Publishing
   Books and Guides
   C Development Tools and Libraries
   Cloud Infrastructure
   Design Suite
   Editors
   Educational Software
   Electronic Lab
   Engineering and Scientific
   Fedora Eclipse
   Games and Entertainment
   LibreOffice
   Medical Applications
   Milkymist
   Network Servers
   Office/Productivity
   RPM Development Tools
   Robotics
   Security Lab
   Sound and Video
   System Tools
   Text-based Internet
   Window Managers
Done
[root@localhost redcat]#
Code:
Running transaction
  Installing : libgpg-error-devel-1.11-1.fc19.x86_64                        1/2 
  Installing : libgcrypt-devel-1.5.3-2.fc19.x86_64                          2/2 
  Verifying  : libgcrypt-devel-1.5.3-2.fc19.x86_64                          1/2 
  Verifying  : libgpg-error-devel-1.11-1.fc19.x86_64                        2/2 

Installed:
  libgcrypt-devel.x86_64 0:1.5.3-2.fc19
Now extract and go through what I did with the mtpfs tarball and repeat the same practices for
libmtp-1.1.6.tar.g?
 
  


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 02:48 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