Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Static or dynamically linked install on Ubuntu 64 bit


From   David Muller <[email protected]>
To   [email protected]
Subject   Re: st: Static or dynamically linked install on Ubuntu 64 bit
Date   Thu, 28 Apr 2011 10:17:55 +1000

I don't think the issue is related to Unity. In Ubuntu 11.04 the
libtiff libraries are located in /lib32/. As such, the command:

sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

creates a symbolic link to nothing. I tried linking to the library in
/lib32/ directly but, as expected, this causes problems in 64 bit
Ubuntu. You need to compile code native to to the environment (in this
case, 64 bit). I got dynamically linked Stata up and running by
downloading and extracting the tiff-3.7.4.tar.gz archive from one of
the mirrors listed at
http://www.filewatcher.com/m/tiff-3.7.4.tar.gz.1282627.0.0.html, and
doing the following in bash:

#############################################
# Create a directory for Stata 11 and install Stata here
sudo mkdir /usr/local/stata11
cd /usr/local/stata11
sudo /path-to-installation-disk/install

# Enter the license information
sudo ./stinit

# Fix some libraries
sudo ln -s /usr/lib/libgtksourceview-2.0.so.0 /usr/lib/libgtksourceview-1.0.so.0
sudo ln -s /usr/lib/libgtk2.0-0 /usr/lib/libgtk-1.2.0
sudo apt-get install libgtksourceview1.0-0

# set up build environment
export LD_LIBRARY_PATH="/usr/local/lib"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export PATH="/usr/local/bin:$PATH"

#  compile the tiff library
cd /directory-where-you-extracted-the-source
env CC=gcc CFLAGS=-m64 ./configure
make
sudo make install
#############################################

After this xstata launched and ran with no errors.

Hope this helps.
Cheers,
David




On Thu, Apr 28, 2011 at 2:24 AM, roland andersson
<[email protected]> wrote:
> David
>
> I am using Ubuntu 10.10 and with the installation as described in my
> earlier post Stata works OK. I have not updated to 11.04. I wonder if
> the reason why Stata does not work has to do with the GUI Unity? I
> have understood that it is possible to use Gnome also in 11.04 and
> that I can choose this at starting up the system. If not I will not
> upgrade until I understand what you mean by "compile and install the
> tiff-3.7.4 binaries from source". Can you give somewhat more detailed
> instructions how this is done?
>
> Greetings
> Roland
>
> 2011/4/27 David Muller <[email protected]>:
>> As a late follow up to this post, it is no longer sufficient to create
>> the symbolic link /usr/lib/libtiff.so.3 --> /usr/lib/libtiff.so.4 when
>> installing dynamically linked Stata under the recent release of 64 bit
>> Ubuntu (11.04). In order to get the dynamically linked version of
>> xstata to run you will need to compile and install the tiff-3.7.4
>> binaries from source.
>>
>> Cheers,
>> David
>>
>> On Tue, Apr 12, 2011 at 4:25 PM, roland andersson
>> <[email protected]> wrote:
>>> My instruction was incomplete. After my install Stata would crash when
>>> I opened the do-file editor. I googled around and found this
>>> instruction
>>>
>>> http://jonas.ranstam.se/2010/10/24/how-to-install-stata-v11-under-ubuntu-10-10-maverick-meerkat/
>>>
>>> It seems to be complete. The dynamic link opens much faster and is
>>> more nice-looking.
>>>
>>>
>>>
>>> # Create a directory for Stata 11 and install Stata here
>>> sudo mkdir /usr/local/stata11
>>> cd /usr/local/stata11
>>> sudo /path-to-installation-disk/install
>>>
>>> # Enter the license information
>>> sudo ./stinit
>>>
>>> # Fix some libraries
>>> sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
>>> sudo ln -s /usr/lib/libgtksourceview-2.0.so.0 /usr/lib/libgtksourceview-1.0.so.0
>>> sudo ln -s /usr/lib/libgtk2.0-0 /usr/lib/libgtk-1.2.0
>>> sudo apt-get install libgtksourceview1.0-0
>>>
>>> Roland Andersson
>>>
>>>
>>> 2011/4/11 Andrew Dyck <[email protected]>:
>>>> I also recall having some problems running the graphical version of
>>>> Stata on Ubuntu without making the changes Roland suggests below.
>>>> Stata would crash when doing things like pressing certain buttons in
>>>> the gui.
>>>>
>>>> I do not know of a downside to running the dynamically linked version
>>>> other than that it takes some extra TLC to get it setup.
>>>>
>>>> Cheers,
>>>> Andrew
>>>>
>>>> On Mon, Apr 11, 2011 at 12:50 PM, roland andersson
>>>> <[email protected]> wrote:
>>>>>
>>>>> I can answer myself - I installed the dynamic version of Stata, and
>>>>> did the following:
>>>>>
>>>>> Run sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
>>>>>
>>>>> Run sudo ln -s /usr/lib/libgtksourceview-2.0.so.0
>>>>> /usr/lib/libgtksourceview-1.0.so.0
>>>>>
>>>>> Stata opened much faster, and probably with more free memory, although
>>>>> I never checked the free memory with the static installation.
>>>>>
>>>>> I think Stata should add a FAQ on this.
>>>>>
>>>>> Greetings
>>>>>
>>>>> Roland Andersson
>>>>>
>>>>>
>>>>> 2011/4/11 roland andersson <[email protected]>:
>>>>> > I have installed Stata11 on Ubuntu 10. The statically linked version
>>>>> > seem to work. I have seen some tweaks to make the dynamically version
>>>>> > work. Is it worth the trouble? What is the difference?
>>>>> >
>>>>> > Roland Andersson
>>>>> > *
>>>>> > *   For searches and help try:
>>>>> > *   http://www.stata.com/help.cgi?search
>>>>> > *   http://www.stata.com/support/statalist/faq
>>>>> > *   http://www.ats.ucla.edu/stat/stata/
>>>>> >
>>>>>
>>>>> *
>>>>> *   For searches and help try:
>>>>> *   http://www.stata.com/help.cgi?search
>>>>> *   http://www.stata.com/support/statalist/faq
>>>>> *   http://www.ats.ucla.edu/stat/stata/
>>>>
>>>> *
>>>> *   For searches and help try:
>>>> *   http://www.stata.com/help.cgi?search
>>>> *   http://www.stata.com/support/statalist/faq
>>>> *   http://www.ats.ucla.edu/stat/stata/
>>>>
>>>
>>> *
>>> *   For searches and help try:
>>> *   http://www.stata.com/help.cgi?search
>>> *   http://www.stata.com/support/statalist/faq
>>> *   http://www.ats.ucla.edu/stat/stata/
>>>
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index