LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I really don't know how to install MyPaint (https://www.linuxquestions.org/questions/linux-newbie-8/i-really-dont-know-how-to-install-mypaint-852461/)

maydayberry 12-26-2010 10:29 AM

I really don't know how to install MyPaint
 
Hello everyone,

it's quite embarrassing to ask for me, it's my first question here, but I really need someone's help. :confused:

My distribution - Xubuntu 9.10. I have it about six months, maybe longer.

I need MyPaint for my schoolwork. But I realized I don't know what to do with it.

Add/Remove Apps - simply, it isn't here. Synaptics - the same situation. So I downloaded .tar.bz2 file, but I don't know what to do with it. If I open it, there's just a lot of files and directories. In readme there's nothing useful for me, just some tips for using MyPaint in Windows. I didn't know in which directory I should have save it, too.

I tried this two commands :
Code:

sudo add-apt-repository ppa:tillux/t-misc
and this
Code:

sudo apt-get update && sudo apt-get install mypaint
.

Something happened, but in the end it wrote just this error - don't know how it was correctly - some index files were not downloaded, they are ignored or there are used older versions.
Yes, I use Linux quite a long time against some fresh newbies, but I'm still finding some hard nuts to crack.

Thanks for your help and sorry for your wasted time.

P.S. I don't know if the latest version (0.9) would work, so it can be older (0.8). Anyway, a step-by-step help would be really great. :)

stress_junkie 12-26-2010 10:45 AM

A link to the application would have been helpful.

http://mypaint.intilinux.com/

Here is a link to the download page.

http://mypaint.intilinux.com/?page_id=6

Here is a link to the Linux packages.

http://wiki.mypaint.info/index.php?t...ng#GNU.2FLinux

According to the last page this application is in the Ubuntu 10.04 repositories and following versions. This means that you should be able to add the proper repository and then use Synaptics to install the application.

Here is the appropriate Ubuntu page for reference.

http://wiki.mypaint.info/index.php?t...ng#GNU.2FLinux

Here is my Ubuntu /etc/apt/sources.list with comments removed.
Code:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

deb http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

It looks like you want to add the universe repository to your Synaptics list. It also looks like you want to install both MyPaint and MyPaint Data for extra brushes.

It also looks like you could use the repositories for 10.10 or 11.04 so you can match whichever version of Xubuntu you are using.

maydayberry 12-26-2010 05:55 PM

-
 
I'm afraid it doesn't work well. When I saved the source list (first I overwrote my source list and then I tried to save it to directory sources.list.d - with Opera sources) and then I ran Synaptics, there was an error in both cases - too many sources, unable to use and similar errors. So I quickly put it back how it was before.

Does someone (you, stress_junkie, too) know anything else ? I'm thinking about this way - just download it in .tar.bz2, save to the right directory and then install as an usual package. Is it possible in this kind of way or am I just trying to do something impossible or simplify something difficult ?

stress_junkie 12-26-2010 06:12 PM

I just noticed that you are using 9.10 of Xubuntu so that is one version behind my Ubuntu. My Ubuntu is Lousy Layabout so you must be using Krusty Kancer. I don't know if MyPaint is in that repository.

So this is basically how you handle tar.bz files.

Download the file into its own directory such as $HOME/Downloads/mypaint.

Open Nautilus and navigate to that directory.

Select that file and right click with the mouse.

Select "Open With" the archive manager.

Select "Extract" and extract into the same directory.

What you do next depends on what is extracted. It might be a binary. It might be a deb file. It might be source files.

When I look at the My Paint web page I don't see any tar.bz files available for Linux. What is the URL of the web page from which you obtained this tar.bz file?

Or it would just be easier if you upgraded to a newer version of Xubuntu. I like Lousy Layabout but you could use Moronic Morlock.

djtoltz 12-26-2010 06:25 PM

If you have downloaded a source bundle, after you extract the files from the .tar.gz file, you can navigate your shell into the folder with the sources and try "./configure". If that results in a series of messages, and ends in success, you can next execute "make". If that completes successfully, your next step is to "sudo make install", because the install requires access to system folders.

Having said that, you might need to fist install dependencies, and some of what you install could be redundant with software already loaded on your system. The cleanest solution is to use the apt-get option, if you can. However, you should be able to install from the source bundle if you don't mind downloading some dependencies and possibly having some redundant code on your system.

maydayberry 12-27-2010 05:09 AM

The download link is here
Code:

http://download.gna.org/mypaint/mypaint-0.9.0.tar.bz2
Well, I extracted it. But is it a source file or not ? Some scripts, directories with brushes, backgrounds and so on ---

I've never tried to install something in this way, so I don't know how the source file looks like... :confused:

Upgrading is the last thing I would do, I still hope I will solve it with your help without upgrade.

stress_junkie 12-27-2010 05:35 AM

I downloaded the same tar.bz file and looked inside it. The instructions are inside the file named README. However I don't understand the instructions.
Quote:

Building on Linux:

Compile and run:
scons && ./mypaint

Install:
scons prefix=/usr/local install

Required: pygtk, python, swig, gtk, numpy, pycairo(>=1.4), libpng
Debian users: apt-get install g++ python-dev libglib2.0-dev python-numpy swig scons gettext libpng12-dev

Recommended: a pressure sensitive input device (graphic tablet)
I don't know what scons is. I tried looking it up. Google lists many links related to Linux console but none of those links contains "scons" so I don't know what it is.

Nylex 12-27-2010 05:38 AM

Quote:

Originally Posted by stress_junkie (Post 4204151)
I downloaded the same tar.bz file and looked inside it. The instructions are inside the file named README. However I don't understand the instructions.

I don't know what scons is. I tried looking it up. Google lists many links related to Linux console but none of those links contains "scons" so I don't know what it is.

http://www.scons.org/wiki/Frequently...1c45b56f4c76d1

Also, to the OP: if you're going to go and download software from the project's website, you should always look there for installation instructions, as well as inside tarballs you download (as stress_junkie did for you).

stress_junkie 12-27-2010 06:00 AM

@Nylex: Thank you for finding that. As I look further at the instructions I see that scons is included in the apt-get install command.

@maydayberry: Now the instructions make sense to me.

The first thing that you must do is ensure that all of the required packages are installed. These are listed near the bottom of the instructions that I quoted. This is what you should do.

Open a terminal window and enter the following command.
Code:

sudo apt-get install g++ python-dev libglib2.0-dev python-numpy swig scons gettext libpng12-dev
Enter your normal user password when it asks for a password.

That command will install the other packages that My Paint requires.

Once you have done this then you can follow the other instructions in the README file except that you may have to use sudo in front of the scons command that installs the software.

In the terminal window you will have to navigate to the directory that contains the extracted tar.bz file. Once you are there you can enter the following commands.
Code:

scons && ./mypaint

sudo scons prefix=/usr/local install

This will install the My Paint software in the /usr/local directory. In order to run the software you will have to find the main binary of the program and run it. It will look something like this.
Code:

/usr/local/mypaint/mypaint
I don't know the exact path because I didn't install My Paint using this method so it is not located there on my system.

maydayberry 12-27-2010 06:10 AM

Quote:

*** No SConstruct file found
SCons is a software construction tool—that is, a superior alternative to the classic "Make" build tool that we all know and love. ...a superior alternative does nothing, so I wrote 'make'. Result = no target specified and no makefile found.
So, how to specify the target and how to find makefile/scon file...could it help or not ?

(And finally - how high is my chance to run this program with my low skills before 15th January ?)

//////
Okay, stress_junkie, I will try it.

///////
Result of my efforts :
Code:

python-dev (and other like 'python numpy', 'scon'...) is newest version
E: I cannot get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: I cannot lock directory for downloading

It looks like I can't go on, if there's a problem with first command.

stress_junkie 12-27-2010 07:32 AM

Quote:

Originally Posted by maydayberry (Post 4204185)
It looks like I can't go on, if there's a problem with first command.

Try putting sudo in front of the first command.

maydayberry 12-27-2010 08:33 AM

I almost always write 'sudo' before a command (if I am not logged in as root), but thanks anyway.

Maybe I've found something - I downloaded it as .deb (version for 9.10 is 0.8.2 - but I had to add new software source, thanks to you I knew how and where) and installed with Synaptic (together with 'protobuf-compiler' and 'python-protobuf', they were necessary dependences) - but it doesn't run. The icon is in the menu, but when I click, nothing happened.
Now I am downloading some actualizations, so I will wait, maybe it helps.

/////////////////

Well, well. I have it like 'installed', but I cannot run it.
I restarted computer - nothing, still the same.

stress_junkie 12-27-2010 08:51 AM

Let us know what happens.

I ran My Paint on my computer. I like it. :)

maydayberry 12-27-2010 09:28 AM

Again and again - I click, HDD light starts to flash like when I run other app, but nothing happened.
Restart doesn't help, as I wrote.
One positive thing - I have actualizations, but I "haven't" MyPaint. You know, I have it, but it looks like there's nothing.
:scratch:

Nylex 12-27-2010 09:31 AM

Have you tried running it from a terminal to check for errors?


All times are GMT -5. The time now is 02:59 AM.