Failed installation on Ubuntu 14.04 (amd_64)

If you want to discuss Linux specific topics then use this forum.
kazalex
Posts: 4
Joined: Sat Feb 07, 2015 3:45 pm

Failed installation on Ubuntu 14.04 (amd_64)

Postby kazalex » Sat Feb 07, 2015 3:51 pm

log:

Code: Select all

/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/bin/ld: cannot find -lgtk-x11-2.0
/usr/bin/ld: cannot find -lgdk-x11-2.0
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: cannot find -lgthread-2.0
/usr/bin/ld: cannot find -lgmodule-2.0
/usr/bin/ld: cannot find -lpango-1.0
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -latk-1.0
/home/kazalex/Development/FreePascal/lazarus/ide/lazarus.pp(142,1) Error: (9013) Error while linking
/home/kazalex/Development/FreePascal/lazarus/ide/lazarus.pp(142,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[3]: Leaving directory `/home/kazalex/Development/FreePascal/lazarus/ide'
make[2]: Leaving directory `/home/kazalex/Development/FreePascal/lazarus/ide'
make[1]: Leaving directory `/home/kazalex/Development/FreePascal/lazarus'
make[3]: *** [lazarus] Error 1
make[2]: *** [idepkg] Error 2
make[1]: *** [idepkg] Error 2
Build IDE: stopped with exit code 512
ERROR: BuildLazarusIDE: Building IDE failed.
make: *** [useride] Error 2
strip: 'lazarus': No such file
strip: 'startlazarus': No such file

sysrpl
Posts: 108
Joined: Thu Feb 05, 2015 6:31 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby sysrpl » Sat Feb 07, 2015 11:30 pm

What does "uname -m" return in a terminal? Also, are you sure you're running gnome? Try the following.

Code: Select all

rm -rf $HOME/Development/FreePascal
sudo apt-get install build-essential
sudo apt-get install gnome-shell
sh setup.sh

sysrpl
Posts: 108
Joined: Thu Feb 05, 2015 6:31 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby sysrpl » Sun Feb 08, 2015 10:39 am

You shouldn't need to install GNOME, you already have it if you have Unity, but some some reason it's not linking. Unity is a graphical shell for the GNOME. I was asking if you had GNOME, because according to what you posted, Lazarus failed to link to X11, GDK, GTK, the last two are part of GNOME, and as a consequence part of the Unity shell.

http://developer.gnome.org/gdk3

Can you post your fpc.cfg file located in $HOME/Development/FreePascal/fpc/bin ?

kazalex
Posts: 4
Joined: Sat Feb 07, 2015 3:45 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby kazalex » Sun Feb 08, 2015 11:10 am

sysrpl wrote:Can you post your fpc.cfg file located in $HOME/Development/FreePascal/fpc/bin ?

Attached.

In setup.sh script i find:
# Original location
ORIGIN="/home/delluser/Development/Base"

it's normal?
Attachments
fpc_cfg.zip
(2.73 KiB) Downloaded 497 times

sysrpl
Posts: 108
Joined: Thu Feb 05, 2015 6:31 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby sysrpl » Sun Feb 08, 2015 6:14 pm

The ORIGIN is normal. What's happening there is I have a bunch of files all configured on my development machine, including build modes, color preferences, tabulation, a custom launcher script, and a desktop launcher file. These files all contain paths to locations on my development machine. The setup script replaces paths referring to locations on development machine that appear in the in the files I listed with paths referring to locations on your machine.

e.g. in lazarus.sh
export PPC_CONFIG_PATH=/home/delluser/Development/Base/fpc/bin
becomes
export PPC_CONFIG_PATH=your_install_folder/fpc/bin

kazalex
Posts: 4
Joined: Sat Feb 07, 2015 3:45 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby kazalex » Mon Feb 09, 2015 4:46 pm

Solution of problem:

Code: Select all

sudo apt-get install libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev libatk1.0-dev libghc-x11-dev libgtk2.0-dev

sysrpl
Posts: 108
Joined: Thu Feb 05, 2015 6:31 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby sysrpl » Mon Feb 09, 2015 7:52 pm

Thank you for that. I added a note in the installer:

http://github.com/sysrpl/Codebot.Setup/ ... nux.sh#L60

Now that I see your solution, I recall having those in my Bare Game installer:

http://download.baregame.org/bare-install.sh

sudo apt-get install build-essential libcairo2 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libpango1.0-0 libsdl1.2debian subversion wget p7zip-full libssl-dev libxml2-dev libgtk2.0-dev libcairo-dev libgdk-pixbuf2.0-dev

The reason I am had left those out in my the getlazarus.org setup script is because those are a lot of apt-get install package names exclusive to debian. I want to get away from distro specific scripts. That and in my experience of my last four or five on my fresh Ubuntu installs, those lines were longer necessary. I guess in some cases they can still be.

kazalex
Posts: 4
Joined: Sat Feb 07, 2015 3:45 pm

Re: Failed installation on Ubuntu 14.04 (amd_64)

Postby kazalex » Thu Jul 30, 2015 10:01 pm

Also package libgtkglext1-dev is required for compilation of unit OpenGLContext.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest

cron