Debian Codegraph @

t/expected/padre_download_ubuntu_noclass.html

raw
1 <h1 id="UbuntuInstallationInstructions">Ubuntu Installation Instructions</h1>
2 <p>
3 Apparently Ubuntu 11.04 also comes with <a href="https://bugs.launchpad.net/ubuntu/+source/padre/+bug/761782"><span ></span>broken wxWidgets or broken Wx</a>.
4 <a href="http://ubuntuforums.org/showthread.php?t=1745375"><span ></span>see here too</a>
5 </p>
6 <p>
7 Please follow the instructions below to manually install (again) the wx related modules.
8 Probably the best way is to use local::lib so your installation won't interfere with the system installation.
9 </p>
10 <p>
11 === If you have upgraded to **natty**(11.04) from mavrick(10.10),
12 * to install the wx library files you can
13 <tt>#!sh
14 $sudo apt-get install libwxbase2.8-0 libwxgtk2.8-0 libwxbase2.8-dev libwxgtk2.8-dev libgtk2.0-dev
15 </tt>
16 * Install <tt>gtk2-engines-pixbuf</tt> to get rid of the annoying warning on Ubuntu 11.10: <tt>Gtk-WARNING **: Unable to locate theme engine in module_path: &quot;pixmap&quot;</tt>
17 </p>
18 <blockquote>
19 <p>
20 <tt>
21 </p>
22 </blockquote>
23 <p>
24 sudo apt-get install gtk2-engines-pixbuf
25 <tt>
26 * you can check the library files are installed with
27 </tt>#!sh
28 $ dpkg -l |grep -i libwx |awk '{ print $2 }'
29 libwxbase2.8-0
30 libwxbase2.8-dev
31 libwxgtk2.8-0
32 libwxgtk2.8-dev
33 </p>
34 <p>
35 $ dpkg -l |grep -i libgtk2.0-dev |awk '{ print $2 }'
36 libgtk2.0-dev
37 <tt>
38 * you will need to reinstall WX.
39 </tt>#!sh
40 $sudo cpan
41 ....
42 cpan<a href="/changeset/1">[1]</a>&gt; force install Wx
43 Going to read '/root/.cpan/Metadata'
44 </p>
45 <blockquote>
46 <p>
47 Database was generated on Wed, 04 May 2011 04:32:25 GMT
48 </p>
49 </blockquote>
50 <p>
51 Running install for module 'Wx'
52 Running make for M/MB/MBARBON/Wx-0.98.tar.gz
53 Fetching with LWP:
54 ....
55 </p>
56 <p>
57 <tt>
58 </p>
59 <h2 id="InstallationusingthePackageManager">Installation using the Package Manager</h2>
60 <p>
61 Ubuntu 10.10 contains Padre 0.63, Ubuntu 10.04 contains Padre 0.50
62 </p>
63 <pre>
64 sudo apt-get install padre
65 </pre>
66 <p>
67 Because of a packaging error, <a href="https://bugs.launchpad.net/ubuntu/+source/padre/+bug/485012"><span ></span>padre does not work out of the box on Ubuntu 10.10</a>.
68 One possible workaround is to install wx-perl from CPAN:
69 <tt>
70 sudo cpan Alien::wxWidgets
71 sudo cpan Wx
72 </tt>
73 </p>
74 <p>
75 Use <tt>apt-cache</tt> to find out which plug-ins are available:
76 <tt>
77 apt-cache -n search padre
78 </tt>
79 </p>
80 <p>
81 On Ubuntu 10.04, you can install the following plug-ins:
82 <tt>
83 sudo apt-get install libpadre-plugin-css-perl libpadre-plugin-html-perl libpadre-plugin-spellcheck-perl libpadre-plugin-xml-perl libpadre-plugin-autoformat-perl libpadre-plugin-vi-perl libpadre-plugin-nopaste-perl
84 </tt>
85 </p>
86 <h2 id="InstallationfromCPAN">Installation from CPAN</h2>
87 <p>
88 This was checked for Ubuntu 9.04 and 10.10 but it should work for later versions as well.
89 </p>
90 <ul><li>Install required development packages </li></ul>
91 <pre>
92 sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev libwxbase2.8-dev libwxbase2.8-0 libgtk2.0-dev g++
93 </pre>
94 <ul><li>download and setup local::lib ( <a href="http://search.cpan.org/dist/local-lib/"><span ></span>http://search.cpan.org/dist/local-lib/</a> )</li></ul>
95 <pre>
96 # in your $HOME
97 cd $HOME
98
99 perl -v
100 # This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
101 # This is called system perl
102
103 # Install local::lib into your $HOME
104 wget http://search.cpan.org/CPAN/authors/id/G/GE/GETTY/local-lib-1.006007.tar.gz
105 tar xfz local-lib-1.006007.tar.gz
106 cd local-lib-1.006007/
107 perl Makefile.PL --bootstrap
108 make test &amp;&amp; make install
109 cd $HOME
110
111 # Add local::lib to your .bashrc
112 echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' &gt;&gt;~/.bashrc
113
114 # Optional step if you do not want to close your terminal
115 eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
116
117 # Optional: remove local::lib folder
118 rm -rf local-lib-1.006007
119
120 </pre>
121 <ul><li>configure the cpan client setting the prerequisite_policy to 'follow' and to add a CPAN server in the urllist:
122 <li><tt>cpan</tt>
123 </li><li><tt>conf prerequisites_policy follow</tt>
124 </li><li><tt>conf urllist <a href="http://cpan.yahoo.com/"><span ></span>http://cpan.yahoo.com/</a></tt>
125 </li><li><tt>conf save</tt>
126 <li><tt>cpan App::cpanminus</tt>
127 </li><li><tt>cpanm Alien::wxWidgets</tt>
128 </li><li><tt>cpanm Wx</tt>
129 </li><li><tt>cpanm Padre</tt></li></ul>
130 <p>
131 There are certain places where CPAN.pm is still asking for confirmation &quot;is just needed temporarily during building or testing. Do you want to install it permanently (y/n) [yes]&quot;.
132 </p>
133 <p>
134 This can be eliminated by setting build_requires_install_policy to 'yes' in the CPAN client:
135 * <tt>conf build_requires_install_policy yes</tt>
136 * <tt>conf save</tt>
137 </p>
138 <p>
139 === If you accidentally tried to install with wx-2.6 libs
140 This can happen if you blindly try to install Padre using cpan without checking for library dependencies. In that case, the installation will die at some point during the Wx compilation phase. Alien::wxWidgets will think that you have v 2.6 (even after you install 2.8), so you must remove it before moving forward with the install. To check if Alien::wxWidgets is incorrect, run this at your command line:
141 <tt>#!sh
142 perl -MAlien::wxWidgets -e 'print Alien::wxWidgets-&gt;version, &quot;\n&quot;'
143 </tt>
144 If the output says 2.006### then Alien::wxWidgets needs to be fixed. If it says 2.008###, then this is not a problem.
145 </p>
146 <p>
147 Before doing any of the following steps, ensure that you have the wx-2.8 dev libs installed via apt-get, as detailed above. The steps that I have tried to fix this problem, in increasing levels of severity, are as follows. After you try each one, you can test if Alien::wxWidgets is properly configured by running the one-liner shown above and checking that the output says 2.008###.
148 </p>
149 <p>
150 * Force-install Alien::wxWidgets. (This didn't work for me for some reason.)
151 * Install App::pmuninstall via CPAN and use it to remove Alien::wxWidgets. Then reinstall Alien::wxWidgets.
152 * Remove the Alien::wxWidgets files by hand, then re-install Alien::wxWidgets from cpan. If you are using local::lib, you will find these in ~/perl5/lib/perl5/Alien and ~/perl5/lib/perl5/i686-linux-gnu-thread-multi/Alien. If you are installing these into your system perl, you will find these under similar folders at /usr/local/lib/perl5/..., I believe.
153 </p>
154 <h2 id="StillNotWorking?">Still Not Working?</h2>
155 <p>
156 Following the instructions on this page did not lead to a successful installation?
157 </p>
158 <p>
159 <a href="http://padre.perlide.org/contact.html"><span ></span>Contact us</a>.
160 </p>
161 <p>
162 We will do our best to help you.
163 By letting us know that something does not work you will help us, too.
164 When we know about it, we can improve this documentation and Padre itself.
165 </p>