- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- hlp me instal gd, got eror - undefined reference t...
Operating System - Linux
1753359
Members
5647
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 07:21 PM
тАО04-18-2007 07:21 PM
before installing mrtg, completing the pre-req,
dowload the zlib-1.2.3.tar.bz2
# cd /usr/src
# tar jxvf zlib-1.2.3.tar.bz2
# cd /usr/src/zlib-1.2.3
# mkdir /usr/local/zlib
# make clean
# ./configure --prefix=/usr/local/zlib
# make
# make install
Now I am trying to install gd-2-0.34
# cd /usr/src
# tar jxvf gd-2.0.34.tar.bz2
# cd /usr/src/gd-2.0.34
# mkdir /usr/local/gd
# ./configure --prefix=/usr/local/gd --with-png=/usr/local/libpng \
--with-jpeg=/usr/local/jpeg
# make
got the following error
/usr/local/gd-2.0.34/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/usr/local/gd-2.0.34'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/gd-2.0.34'
make: *** [all] Error 2
Plz help
Regards
dowload the zlib-1.2.3.tar.bz2
# cd /usr/src
# tar jxvf zlib-1.2.3.tar.bz2
# cd /usr/src/zlib-1.2.3
# mkdir /usr/local/zlib
# make clean
# ./configure --prefix=/usr/local/zlib
# make
# make install
Now I am trying to install gd-2-0.34
# cd /usr/src
# tar jxvf gd-2.0.34.tar.bz2
# cd /usr/src/gd-2.0.34
# mkdir /usr/local/gd
# ./configure --prefix=/usr/local/gd --with-png=/usr/local/libpng \
--with-jpeg=/usr/local/jpeg
# make
got the following error
/usr/local/gd-2.0.34/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/usr/local/gd-2.0.34'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/gd-2.0.34'
make: *** [all] Error 2
Plz help
Regards
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 07:45 PM
тАО04-18-2007 07:45 PM
Solution
I understand that gd needs zlib. But you are installing zlib in a non-standard location (/usr/local/zlib instead of /usr/local). So it's likely that gd won't find it, which may be the cause of the error.
I think you should stick with standard locations (i.e., do not specify --prefix).
I think you should stick with standard locations (i.e., do not specify --prefix).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 08:17 PM
тАО04-18-2007 08:17 PM
Re: hlp me instal gd, got eror - undefined reference to `gdImageCreateFromGd2Part'
Thanks Dear Jerome Forissier for superb help :)
I followed your instruction to install zlib, i.e,
# ./configure
# make
# make install
then I tried to install the gd(as above), it went smooth/perfect ... thanks
Even I was also facing error installing libpng(http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1119599)..but rsolved when I installed the zlib, as per your instruction.
Regards
Maaz
I followed your instruction to install zlib, i.e,
# ./configure
# make
# make install
then I tried to install the gd(as above), it went smooth/perfect ... thanks
Even I was also facing error installing libpng(http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1119599)..but rsolved when I installed the zlib, as per your instruction.
Regards
Maaz
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP