LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Installing mtpfs 1.1.tar gz for Fedora 19 (https://www.linuxquestions.org/questions/fedora-35/installing-mtpfs-1-1-tar-gz-for-fedora-19-a-4175492097/)

gengisdave 01-22-2014 08:50 PM

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

Ztcoracat 01-22-2014 09:20 PM

Quote:

Originally Posted by gengisdave (Post 5103317)
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?


John VV 01-22-2014 11:07 PM

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


Ztcoracat 01-22-2014 11:26 PM

Quote:

Originally Posted by John VV (Post 5103377)
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.


Ztcoracat 01-22-2014 11:57 PM

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.

John VV 01-23-2014 12:26 AM

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

knudfl 01-23-2014 08:01 AM

# 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 ! !

-

Ztcoracat 01-23-2014 07:11 PM

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

Ztcoracat 01-23-2014 07:24 PM

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?

Ztcoracat 01-23-2014 08:04 PM

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?

gengisdave 01-23-2014 08:13 PM

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

Ztcoracat 01-23-2014 08:25 PM

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

Ztcoracat 01-23-2014 09:16 PM

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

John VV 01-23-2014 09:28 PM

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


Ztcoracat 01-23-2014 10:04 PM

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?


All times are GMT -5. The time now is 08:49 PM.