PCManFM-Mod Controls

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

PCManFM-Mod Controls

Post by pnbalaji »

Hi,

I had couple of issues with Thunar and hence tried to install PCManFM, which is my preferred file manager. I had difficulties in installing it from gslapt or sourcery, but then finally I was able to install PCManFM-Mod instead of PCManFM. It is almost same as PCManFM, but I am missing one important feature that I see in the origianl PCManFM. When I press Ctrl-2 in PCManFM, the view changes to detailed list with Name, size, type, Permission, Owner:Group, Last Modification and when I press Ctrl-1, the view changes to icon view. However, I am not seeing this feature in PCManFM-Mod. Is there anything I can do to make it work?

Thanks,
Balaji.
User avatar
zazlox
Posts: 39
Joined: 19. Jun 2012, 02:24
Location: Morocco

Re: PCManFM-Mod Controls

Post by zazlox »

yu can still install pcmanfm . make sure that vala is installer

Code: Select all

su -

Code: Select all

slapt-get --i vala

Code: Select all

root@zaz:~# slapt-get --show vala
Package Name: vala
Package Mirror: http://salix.enialis.net/i486/14.0/
Package Priority: Preferred
Package Location: ./salix/d
Package Version: 0.16.1-i486-1gv
Package Size: 1548 K
Package Installed Size: 6192 K
Package Required:   glib2,libffi
Package Conflicts:   
Package Suggests:   
Package MD5 Sum:  fd22819140ed600a590c4e72674b83e7
Package Description:
 vala (a compiler for the GObject type system)
 
 Vala is a new programming language that aims to bring modern
 programming language features to GNOME developers without imposing any
 additional runtime requirements and without using a different ABI
 compared to applications and libraries written in C.
 valac, the Vala compiler, is a self-hosting compiler that translates
 Vala source code into C source and header files. It uses the GObject
 type system to create classes and interfaces declared in the Vala
 source code.
 
Package ChangeLog:
 Added. Upgraded from 13.37.

Package Installed: yes
***********************************

after that you can use Sourcery to install pcmanfm . make sure you check libfm for install too

Code: Select all

root@zaz:~# slapt-get --show pcmanfm
Package Name: pcmanfm
Package Mirror: 
Package Priority: Default
Package Location: 
Package Version: 1.0.1-i486-1_SBo
Package Size: 183 K
Package Installed Size: 965 K
Package Required: 
Package Conflicts: 
Package Suggests: 
Package MD5 Sum:  
Package Description:
 pcmanfm (PCMan File Manager)
 
 PCManFM is an extremely fast and lightweight GTK+ based file manager
 which features tabbed browsing and a user-friendly interface
 
 Homepage:  http://pcmanfm.sourceforge.net
 
 
 
 
 
Package Installed: yes
***************************

concerning Pcmanfm-Mod . igurublog


good luck
The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it.
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: PCManFM-Mod Controls

Post by pnbalaji »

I installed vala and then tried to install pcmanfm using sourcery and it failed with the below error message.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
configure: error: Package requirements (glib-2.0 gtk+-2.0 gio-unix-2.0 pango >= 1.20.0 libfm >= 1.0 libfm-gtk >= 1.0) were not met:

No package 'libfm' found
No package 'libfm-gtk' 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 FM_CFLAGS
and FM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
fakeroot -- sh pcmanfm.SlackBuild Failed
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I could see that libfm is already installed, but there is no package as libfm-gtk in gslapt or sourcery. I tried a search for "libfm-gtk salix 14.0" in google and I couldn't get any clear results.

Thanks,
Balaji.
User avatar
zazlox
Posts: 39
Joined: 19. Jun 2012, 02:24
Location: Morocco

Re: PCManFM-Mod Controls

Post by zazlox »

maybe you till some dependencies. however , here is a list of them . try to reintalling them by order

Code: Select all

ORBit2
GConf
libatasmart
sg3_utils
udisks
upower
menu-cache
gvfs
libfm
pcmanfm
*******************************

other thing you can do , before using the ./configure command .

try to use it like this

Code: Select all

./configure --sysconfdir=/etc --prefix=/usr PKG_CONFIG_PATH=/usr/lib/pkgconfig/ 

*******************************
or you can et the env path of pkgconfig that way too

- first check the par=th using the echo command

Code: Select all

echo $PKG_CONFIG_PATH
then using export to set the env

-- for example :

Code: Select all

export PKG_CONFIG_PATH=/usr/lib/pkgconfig
***************************************

if everything was ok ; you shall see an output of ./configure

like this :

Code: Select all

gcc  -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/gio-unix-2.0/ -I/usr/include/libfm   -I/usr/include/menu-cache -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DG_DISABLE_CAST_CHECKS -Wall -Werror-implicit-function-declaration  -O2 -march=i486 -mtune=i686  -lm -o pcmanfm pcmanfm-pcmanfm.o pcmanfm-app-config.o pcmanfm-main-win.o pcmanfm-tab-page.o pcmanfm-desktop.o pcmanfm-volume-manager.o pcmanfm-pref.o pcmanfm-utils.o pcmanfm-single-inst.o  -lX11   -pthread -lfm-gtk -lgtk-x11-2.0 -lfm -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgthread-2.0 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0   -lmenu-cache -lglib-2.0    
gcc -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATA_DIR=\""/usr/share/pcmanfm"\" -DPACKAGE_UI_DIR=\""/usr/share/pcmanfm/ui"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/   -O2 -march=i486 -mtune=i686 -MT xml_purge-xml-purge.o -MD -MP -MF .deps/xml_purge-xml-purge.Tpo -c -o xml_purge-xml-purge.o `test -f 'xml-purge.c' || echo './'`xml-purge.c
mv -f .deps/xml_purge-xml-purge.Tpo .deps/xml_purge-xml-purge.Po
gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/   -O2 -march=i486 -mtune=i686  -lm -o xml-purge xml_purge-xml-purge.o -pthread -lgthread-2.0 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0   
make[2]: Leaving directory `/usr/src/slapt-src/system/pcmanfm/pcmanfm-1.0.1/src'

********************************

if you are using 64 system , maybe you'll need this commands too

Code: Select all

ln -s /usr/lib/libfm-gtk.so.0.0.0 /usr/lib64/libfm-gtk.so.0
ln -s /usr/lib/libfm.so.0.0.0 /usr/lib64/libfm.so.0

********************************

good luck
The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it.
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: PCManFM-Mod Controls

Post by pnbalaji »

Thanks for your help. I am still having issues.

I checked all dependencies and they are there. The version of libfm installed by gslapt is 0.1, where as when I build pcmanfm from sourcery, it is looking for libfm > 1.0 and hence fails. I tried to install libfm via sourcery, and it failed saying the dependency gtk-doc is missing. I couldn't find gtk-doc in either gslapt or sourcery.

As a next step, I have downloaded the pcmanfm slackbuild and changed the configure command as you suggested. It looks like the configure went through fine, but make failed with the below error message.

libtool: link: cannot find the library `/usr/lib/libstdc++.la' or unhandled argument `/usr/lib/libstdc++.la'
make[1]: *** [pcmanfm-mod] Error 1
make[1]: Leaving directory `/tmp/SBo/pcmanfm-mod-1.2.3/src'
make: *** [all-recursive] Error 1

I never thought installing pcmanfm will be a big challenge like this. Anyway, learning new things as I proceed. Thanks for your help.

Thanks,
Balaji.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: PCManFM-Mod Controls

Post by laprjns »

pnbalaji wrote:I tried to install libfm via sourcery, and it failed saying the dependency gtk-doc is missing. I couldn't find gtk-doc in either gslapt or sourcery.
You need to install linuxdoc-tools to get by the missing gtk-doc, but you will also most likely run into another problem with a missing libmenu-cash dependency which will be satisfied by adding menu-cache, Both are available via slapt-get. So do:

Code: Select all

slapt-get --install linuxdoc-tools menu-cache
followed by:

Code: Select all

slapt-src --install libfm:1.1.0
slapt-src --install pcmanfm:1.1.0
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: PCManFM-Mod Controls

Post by pnbalaji »

Hi,

menu-cache was already installed and I had to install only linuxdoc-tools.

When I tried the command "slapt-src --install libfm:1.1.0", I got an error message like "unable to find all slack builds". I tried "slapt-src --install libfm" and it installed libfm1.0.1 instead of 1.1.10. Installed pcmanfm after that and it installed fine. However, the version of pcmanfm that was installed doesn't provide the necessary functions that I am looking for "Ctrl-1" and "Ctrl-2". I will check the version of pcmanfm that is available in my home PC in linux mint XFCE.

Thanks,
Balaji.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: PCManFM-Mod Controls

Post by laprjns »

pnbalaji wrote:However, the version of pcmanfm that was installed doesn't provide the necessary functions that I am looking for "Ctrl-1" and "Ctrl-2".
pcmanfm 1.1.0 has the functionality that your looking for althought the key bindings are:
ctrl+1 ==> icon view
ctrl+2 ==> thumbnail view
ctrl+3 ==> compact view
ctrl+4 ==> detail view

pcmanfm 1.1.0 is available through slapt-src, but you've got to add the slackbuild repo http://slackbuilds.org/slackbuilds/14.0/ to your slapt-src configuration file /etc/slapt-get/slapt-srcrc. It should look like this:

Code: Select all

rich[~]$ cat /etc/slapt-get/slapt-srcrc 
BUILDDIR=/usr/src/slapt-src
PKGEXT=txz
SOURCE=http://salix.enialis.net/slkbuild/14.0/
SOURCE=http://salix.enialis.net/sbo/14.0/
SOURCE=http://slackbuilds.org/slackbuilds/14.0/
Once this is done then do a slapt-src --update and you will now have access to the latest slackbuild repo. Doing a search for pcmanfm should result in this:

Code: Select all

root[rich]# slapt-src --se pcmanfm
libfm:1.0.1 - libfm (pcmanfm library)
libfm:1.1.0 - libfm (pcmanfm library)
pcmanfm:1.0.1 - pcmanfm (PCMan File Manager)
pcmanfm:1.1.0 - pcmanfm (PCMan File Manager)
Now you can see that there are two versions of pcmanfm and libfm. Install the latest versions by doing this:

Code: Select all

slapt-src -i libfm:1.1.0 pcmanfm:1.1.0
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: PCManFM-Mod Controls

Post by pnbalaji »

Thanks for your help. It worked this time. However, after running the slapt-src command, I could see that still pcmanfm version was 1.0.1 only. I had to navigate to the directory /usr/src/slapt-src/system/pcmanfm/ and manually ran the installpkg command to install the 1.1.0 version.

Thanks,
Balaji.
Post Reply