It is currently Tue Apr 23, 2024 1:43 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Wed Jun 12, 2013 7:41 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Fedora Users: Please read the comment #6 by GnuTux
=====
For Ubuntu or Ubuntu derived distributions:
We need to install "alien" to convert the package:
sudo apt-get install alien


Then download MathMap Fedora package, "mathmap-1.3.5-2.fc15.i686.rpm" for Ubuntu 32 bits or "mathmap-1.3.5-2.fc15.x86_64.rpm" for Ubuntu 64 bits:
http://koji.fedoraproject.org/koji/buil ... dID=220694

Convert .rpm to .deb:
*Ubuntu 32 bits:
sudo alien -c mathmap-1.3.5-2.fc15.i686.rpm

After that you should have a .deb package in the same path. Install .deb package.
That is all for Ubuntu 32 bits. You can find the filter in GIMP: Filters > Generic > MathMap

*Ubuntu 64 bits:
sudo alien -c mathmap-1.3.5-2.fc15.x86_64.rpm

After that you should have a .deb package in the same path. Install .deb package.
Now we make the next symbolic link:
sudo ln -s /usr/bin/mathmap /usr/lib/gimp/2.0/plug-ins/mathmap


Now you can find the filter in GIMP: Filters > Generic > MathMap

This method should work whenever you have GIMP installed in /usr

For MathMap Extra Expressions see this thread:
viewtopic.php?f=9&t=4558

_________________
Image
Be patient, English is not my language.


Last edited by YAFU on Thu Jun 13, 2013 10:04 am, edited 2 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Wed Jun 12, 2013 8:40 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2424
You can just unpack these packages and put into your local ~/.gimp-2.8 directory. Makes it a bit easier to 'hack' the '.mm' scripts than them having in root folders.

An easy way (non-command line) is with Peazip. Peazip will unpack both .deb and .rpm archives. A 2-stage process though. First unpack to a tar file (.cpio for an rpm) then unpack that to the folder structure.

Mathmap is not a particularly picky plugin, just has some annoying .devel requirements for compiling.

I have gone the other direction and use the binary from a deb package in an rpm based distro (PCLOS / Gimp 2.8.2). Still works.
Some screenshots of the unpacked .deb package. http://i.imgur.com/Fk0l8Le.jpg

_________________
Image


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Wed Jun 12, 2013 8:58 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
rich2005 wrote:
You can just unpack these packages and put into your local ~/.gimp-2.8 directory. Makes it a bit easier to 'hack' the '.mm' scripts than them having in root folders.


MathMap not work with the plugin in your $HOME. Binaries must be installed on the system. So, I think using alien is still simpler for newbies rather than having to do it manually.
Anyway you can copy expressions you want in /home/YOUR_USER/.gimp-2.8/mathmap/expressions/

_________________
Image
Be patient, English is not my language.


Last edited by YAFU on Wed Jun 12, 2013 9:44 am, edited 1 time in total.

Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Wed Jun 12, 2013 9:18 am  (#4) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2424
Just offering an alternative approach ;)

Quote:
...MathMap not work with the plugin in your $HOME. Binaries must be installed on the system...


And that is not exactly true, is it

Image

_________________
Image


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Wed Jun 12, 2013 9:30 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
rich2005 wrote:
Just offering an alternative approach ;)

Yes, I know. Thanks for that!. Just trying to make it as simple as possible for novice users.

rich2005 wrote:
Quote:
...MathMap not work with the plugin in your $HOME. Binaries must be installed on the system...

And that is not exactly true, is it

Are you sure you do not have mathmap binary in /usr/bin (and symlink in /usr/lib/gimp/2.0/plug-ins/)?
Some time ago I had tried putting the binary in home and had not worked. I must have done something wrong then :(

Edit:
Well, I just leave the binary alone in home, and it works. So I take back about what I had said...

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Wed Jun 12, 2013 6:35 pm  (#6) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
A couple of notes on Installing mathmap in Fedora.

The latest successful build of mathmap for Fedora is for Fedora 15.

However, mathmap can be installed in later releases of Fedora Linux. Ensure you install the correct version (32bit or 64bit) of libnoise & mathmap, matching your OS version.

Ensure that libnoise is installed, as it is a dependency of mathmap. libnoise is not included in the Fedora 18 repositories but you can manually install libnoise for F17 in Fedora 18 and Fedora 19.

Once you have libnoise installed, you can continue with the install of mathmap-1.3.5-2.fc15.

if all goes well, you'll find mathmap under Filters/Generic/Mathmap.

Note: mathmap-1.3.5-2.fc15 requires an older version of libpng as a dependency, which is should be installed alongside the newer version. I have not noticed any issues with doing this but it is possible there could be problems if you have previous modified libpng, (i.e. with the APNG plugin). Use libpng12 for Fedora 19 or libpng-compat for earlier versions of Fedora.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sun Jul 14, 2013 12:38 pm  (#7) 
Offline
GimpChat Member

Joined: Dec 10, 2012
Posts: 32
I am running Linux Mint 15 - Cinnamon with Gimp 2.8.6, and after doing the "alien" thing I installed the deb with "sudo dpkg -i mathmap-blah.deb". I started Gimp, and no Mathmap. I tried Rich's suggestion, but I found out later that the local stuff just doesn't work on my installation.

I then ran Gimp from a terminal and discovered Mathmap was failing because three libs were not installed. After I installed them (with Synaptic) Mathmap came right up and works just fine.

Thanks for this thread YAFU (and Rich). I have had trouble in the past trying to compile Mathmap, and I hope someone will benefit from my experience.


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Tue Jul 16, 2013 7:35 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
adam933 wrote:
I then ran Gimp from a terminal and discovered Mathmap was failing because three libs were not installed. After I installed them (with Synaptic) Mathmap came right up and works just fine.

Hello.
Do you remember which were these packages? If you do not remember you can see in the history.log in "/var/log/apt/"
Thank you.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Tue Jul 23, 2013 5:01 pm  (#9) 
Offline
GimpChat Member

Joined: Dec 10, 2012
Posts: 32
Hello YAFU,

It must have been only 2 libs that I installed. They were:

libgsl0ldbl
libjpeg62

Hope that helps.

Regards,
adam933


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sat Jan 04, 2014 4:12 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Please excuse my complete noobness on this but I must be doing something wrong.

Ok, I'm editing this post as I have got further than before but still no joy, I am including a text copy of my terminal output after running gimp, hopefully somebody will help me make sense of all this.


Attachments:
Gimp Terminal.zip [955 Bytes]
Downloaded 232 times

_________________
Image
Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sat Jan 04, 2014 6:51 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
WOW! I can't believe this,
I installed libnoise for F17, (Tux's instructions)
and this: mathmap-1.3.5-2.fc15
Now I have Mathmap on Fedora 19
I thought I had to do all the make stuff so I was holding off on it.

woo hoo

_________________
Image


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sat Jan 04, 2014 7:38 am  (#12) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
he4rty wrote:
Please excuse my complete noobness on this but I must be doing something wrong.

Ok, I'm editing this post as I have got further than before but still no joy, I am including a text copy of my terminal output after running gimp, hopefully somebody will help me make sense of all this.


mathmap is complaining that you don't have the following library installed: libgtksourceview2-2.0.so.0
mathmap: error while loading shared libraries: libgtksourceview-2.0.so.0: cannot open shared object file: No such file or directory

In Fedora, that library is provided by: gtksourceview2
See if you can install: gtksourceview2 from your Linux repositories.

I also noticed a few other issues GIMP is complaining about.

The following files are generating errors because they are in the resource folders. They should be moved out of these folders to avoid the warning messages.

Patterns folder
Artex.zip
Canvas-Covered.xcf


Pallettes folder
Picture-Frame.gpl.zip
Palette Pack 01.zip


Gradients folder
Crown Mouldings.zip
Gradient Pack 01.zip


GIMP is complaining that you have two versions of: MLBevelReflect in your plug-ins folder. It is saying that you have a copy in: /usr/lib/gimp/2.0/plug-ins/
You should probably remove that one (as root) and only keep one copy in your: /home/user/gimp-2.0/plug-ins/ folder/

There is an error in the script: Picture Frame.scm
Line 307: illegal function

There is also an error in: RMA-path-blend
image-type contains unrecognizable parts:'RGB*, GREY*'

You might want to update or remove those two scripts (or post them here and so we can check them out & fix)

GIMP is also looking for following but can't find it: settings-cleaner.ini
Config file /home/lee/.gimp-2.8/tool-options/settings-cleaner.ini not found

I don't know what settings-cleaner.ini is. Perhaps someone else knows.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sun Jan 05, 2014 2:41 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Tux - Thanks for all your help, I now have mathmap running, although still showing these errors in gimp


(gimp:4475): Gimp-Widgets-CRITICAL **: gimp_device_info_set_device: assertion `(info->device == NULL && GDK_IS_DEVICE (device)) || (GDK_IS_DEVICE (info->device) && device == NULL)' failed
settings-cleaner starting...
Config file /home/lee/.gimp-2.8/tool-options/settings-cleaner.ini not found

(gimp:4475): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
RMA-path-blend: image-type contains unrecognizable parts:'RGB*, GREY*'

I have as far as I'm aware reinstalled the latest version of path blend.

Remembered this Script I had installed when I removed it the problems has gone with the cleaner error.

_________________
Image


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sun Jan 05, 2014 3:31 am  (#14) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Glad I could help, he4rty. I see that you are already checking with RobA on the Path-Blend script warnings, which is what I was going to suggest. ;)

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sun Jan 05, 2014 4:51 am  (#15) 
Offline
GimpChat Member

Joined: Apr 19, 2012
Posts: 80
Location: Australia
he4rty wrote:
(gimp:4475): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
RMA-path-blend: image-type contains unrecognizable parts:'RGB*, GREY*'

Hi he4rty,

Just change the GREY* to GRAY*.
That will fix it.
:)


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Sun Jan 05, 2014 4:59 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
b10h4z4rd wrote:
he4rty wrote:
(gimp:4475): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
RMA-path-blend: image-type contains unrecognizable parts:'RGB*, GREY*'

Hi he4rty,

Just change the GREY* to GRAY*.
That will fix it.
:)


Thanks I'll try that. It worked, Thanks.

_________________
Image


Top
 Post subject: Re: How to install MathMap on Ubuntu with Fedora packages
PostPosted: Thu Aug 11, 2016 10:17 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
Command history from my just-completed, successful install experience into Ubuntu 14.04 LTS following YAFU's epistle:
% sudo apt-get install mathmap # FAIL - that's why we're using a Fedora pkg!
% cd /tmp; wget https://kojipkgs.fedoraproject.org//pac ... x86_64.rpm # go get it
% sudo alien -c mathmap-1.3.5-2.fc15.x86_64.rpm # FAIL - not installed yet!
% sudo apt-get install alien # go get it
% sudo alien -c mathmap-1.3.5-2.fc15.x86_64.rpm # try again - note the NAME changes as well as extension
% sudo gdebi mathmap-1.3.5-2.fc15.x86_64.rpm # FAIL - no such package
% sudo gdebi mathmap_1.3.5-3_amd64.deb # actually check the name...
% sudo ln -s /usr/bin/mathmap /usr/lib/gimp/2.0/plug-ins/mathmap # make the link as prescibed
% mathmap # FAIL missing libnoise.so
% sudo apt-cache dump |grep libnoise
% sudo apt-get install libnoise0
% mathmap # FAIL missing libjpeg62
% sudo apt-cache dump |grep libjpeg6
% sudo apt-get install libjpeg62
% mathmap # yay!
% GIMP # load a png, check Filters->Generic->MathMap, yay! appears, BUT other features grayed/greyed out
% cd ~/.gimp-2.8/plug-ins/; ln -s /usr/bin/mathmap # vaguely recalled seeing something like this; may not be necessary
% GIMP # load a png, check Filters->Generic->MathMap, yay! everything looks normal
END of install history because
NO CLUE ABOUT WHAT I CAN DO WITH MATHMAP... :(
but I know I "can" install it. (THANKU YAFU. You are a beacon of straightforward-ness.)

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Ubuntu MathMap Appimage Remade

2

No new posts Trouble importing third party Python packages to GIMP 2.10 so that the

0

No new posts Attachment(s) Installing SCM in Fedora Linux

2

No new posts Attachment(s) New Ubuntu 20.04 Comes With Gimp But Appimage Better?

18

No new posts G'MIC 2.9.0 for GIMP 2.10 Snaps Ubuntu 20.04 LTS Not Working

4



* Login  



Powered by phpBB3 © phpBB Group