From: Alan W. I. <ir...@be...> - 2001-10-01 19:26:41
|
Those Mandrake 8.0 rpm's were made by a helpful user, and I don't have access to Mandrake myself. Nevertheless, I believe I know a workaround for you from my general rpm experience. The guy that built the Mandrake 8.0 rpm must have had libgd.so.1.8 on his system so I don't quite understand how you have ended up with the later version libgd.so.1.8.4 for your Mandrake 8.0. Perhaps you have an updated version of the gd package and he was using the original Mandrake 8.0 version? You could attempt to fix this by installing his exact Mandrake package of gd. Was this what you were trying? If so, the proper way to do this is to use rpm -F or -U (freshen or update) rather than rpm -i (install). See the rpm man page. You may also have to use some additional parameter to allow updating or freshening an existing newer package with an older package. Again, see the rpm man page. If you just want to do something simpler, you could probably just force the installation of plplot despite the slightly different libgd library version. (look up "man rpm" to see how to force an install.) If you are lucky, libgd.so.1.8.4 will just be a bug-fixed and feature enhanced version of libgd.so.1.8 without any changes to the API that plplot uses. BTW, only the png and jpeg drivers use the libgd API so any version mismatch problems for that library will only show up if you use those particular drivers. BTW, my comments about forcing the PLplot rpm to install are all theoretical. Lots of people apparently do such forcing (to get around such problems as you have encountered), but I haven't done it myself. A final possibility is to build PLplot from either the source rpm or tarball. (In both cases your compiler build will automatically match to the exact library versions you have on your system.) Both possibilities are more tedious than binary rpm installs, but you also learn more, and the results never have library version mismatch troubles. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ On Mon, 1 Oct 2001, M. Frankford wrote: > I am trying to install plplot 5.0.3-4 > on Linux Mandrake 8.0 and get the following > > [root@]# rpm -i plplot-5.0.3-4.i386.rpm > error: failed dependencies: > libgd.so.1.8 is needed by plplot-5.0.3-4 > > > I then tried > [root@]# rpm -i gd-1.8.1-4mdk.i586.rpm > file /usr/lib/libgd.so.1 from install of gd-1.8.1-4mdk conflicts with file > from package libgd1-1.8.4-3mdk > > I checked > [root@]# ls /usr/lib/libgd.* > /usr/lib/libgd.so.1@ /usr/lib/libgd.so.1.8.4* > > How do I resolve this(these) dependency problem(s)? > > Thanks. > > Martin > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |
From: Alan W. I. <ir...@be...> - 2001-10-01 19:40:44
|
Glad to see you are making such good progress. When answering your previous e-mail, I also thought of the symlink solution but I thought the force option for installing plplot would effectively do the same thing (although I might be wrong since I have never tried something like that myself). To answer your other question, libg2c.a is associated with the fortran (g77) library. Currently, our plplot library is both for C and fortran. (A split of the two is being considered for the future.) So you probably have to install g77 or perhaps associated libraries on your Mandrake system to get everything to work properly. Once you find what other package needs to be installed, please let me know privately, and I will pass it on to the Mandrake packager so he can put that extra dependency in. I definitely would not eliminate the need for libg2c.a like you did. For example, I doubt that for your present configuration, the fortran examples will work. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Mon, 1 Oct 2001, M. Frankford wrote: > > I may have found a soln to my own problem. > The Linux Mandrake rpm libgd1-1.8.4-3mdk > is similar to > rpm pkg gd-1.8.1-4mdk but doesnt have links. > > So I made the following links > cd /usr/lib > > ln libgd.so.1.8.4 libgd.so.1.8 > ln libdb1.so.2 libdb1.so > ln -s libz.so.1.1.3 libz.so > ln -s libjpeg.so.62.0.0 libjpeg.so > ln libpng.so.2.1.0.9 libpng.so > ln libgd.so.1 libgd.so > > I edited out the -lg2c from the LDC_LIBS macro. > I can now sucessfully execute > make x01c > > I ran x01c and made a png file and xwindow. > So far so good. One more question. > What does the g2c library do > and do I need it? > > Thanks. > > Martin > > > On Mon, 1 Oct 2001, M. Frankford wrote: > > > I am trying to install plplot 5.0.3-4 > > on Linux Mandrake 8.0 and get the following > > > > [root@]# rpm -i plplot-5.0.3-4.i386.rpm > > error: failed dependencies: > > libgd.so.1.8 is needed by plplot-5.0.3-4 > > > > > > I then tried > > [root@]# rpm -i gd-1.8.1-4mdk.i586.rpm > > file /usr/lib/libgd.so.1 from install of gd-1.8.1-4mdk conflicts with file > > from package libgd1-1.8.4-3mdk > > > > I checked > > [root@]# ls /usr/lib/libgd.* > > /usr/lib/libgd.so.1@ /usr/lib/libgd.so.1.8.4* > > > > How do I resolve this(these) dependency problem(s)? > > > > Thanks. > > > > Martin > > > > > > _______________________________________________ > > Plplot-general mailing list > > Plp...@li... > > https://lists.sourceforge.net/lists/listinfo/plplot-general > > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |
From: Alan W. I. <ir...@be...> - 2001-10-01 21:01:34
|
I think it is time to take this off list. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |
From: Alan W. I. <ir...@be...> - 2001-10-01 22:42:14
|
IMPORTANT. Martin, please forget all my previous replies on and off list. You downloaded an old version of an rpm that is not at all suitable for Mandrake 8.0. My apologies for not recognizing that sooner. Stop and start over with no plplot, your original Mandrake libgd libraries, and no symlinks. Go to http://sourceforge.net/project/showfiles.php?group_id=2915. Read the release notes for plplot-5.0.3-4.i386.rpm by clicking on the associated 5.0.3 link on that page. "This is a binary rpm of PLplot version 5.0.3 that is suitable for RedHat 7.1." That means it is *not* suitable for any other distribution including Mandrake. Also 5.0.3 is dated. Use 5.0.4 instead which is the only one we support. Click on those release notes (e.g., the 5.0.4 link) and you will see "plplot-5.0.4-3mdk.i686.rpm binary rpm for Mandrake 8.0" That is the one you should choose, and I believe all your troubles will be over. I am putting this on list because it is an object lesson to read the release notes at sourceforge before downloading. I also have to say you put everything I needed to know (the rpm package name) in your original post, but I missed it. Sorry again. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Mon, 1 Oct 2001, M. Frankford wrote: > > [root@]# rpm -i plplot-5.0.3-4.i386.rpm > error: failed dependencies: > libgd.so.1.8 is needed by plplot-5.0.3-4 |
From: M. F. <mfr...@se...> - 2001-10-01 22:53:41
|
BTW I didn't download it from sourceforge I downloaded it from rpmfind.net. Perhaps that was where my troubles REALLY began. Assuming I do as you suggest, and it works (I have no doubt it will) here is simpler problem. I want to write a C++ program that streams a png and/or jpeg image to a webpage. How do I specify png or jpeg format and write to stdio using the plplot C++ interface? I can't seam to find the documentation. Thanks. Martin On Mon, 1 Oct 2001, Alan W. Irwin wrote: > IMPORTANT. Martin, please forget all my previous replies on and off list. > You downloaded an old version of an rpm that is not at all suitable for > Mandrake 8.0. My apologies for not recognizing that sooner. > > Stop and start over with no plplot, your original Mandrake libgd libraries, > and no symlinks. > > Go to http://sourceforge.net/project/showfiles.php?group_id=2915. > Read the release notes for plplot-5.0.3-4.i386.rpm by clicking on the > associated 5.0.3 link on that page. > > "This is a binary rpm of PLplot version 5.0.3 that is suitable for RedHat > 7.1." That means it is *not* suitable for any other distribution including > Mandrake. Also 5.0.3 is dated. Use 5.0.4 instead which is the only one we > support. Click on those release notes (e.g., the 5.0.4 link) and you will > see > > "plplot-5.0.4-3mdk.i686.rpm binary rpm for Mandrake 8.0" > > That is the one you should choose, and I believe all your troubles will be > over. > > I am putting this on list because it is an object lesson to read the release > notes at sourceforge before downloading. > > I also have to say you put everything I needed to know (the rpm package name) > in your original post, but I missed it. Sorry again. > > Alan > > email: ir...@be... > phone: 250-727-2902 FAX: 250-721-7715 > snail-mail: > Dr. Alan W. Irwin > Department of Physics and Astronomy, > University of Victoria, P.O. Box 3055, > Victoria, British Columbia, Canada, V8W 3P6 > __________________________ > > Linux-powered astrophysics > __________________________ > > On Mon, 1 Oct 2001, M. Frankford wrote: > > > > > [root@]# rpm -i plplot-5.0.3-4.i386.rpm > > error: failed dependencies: > > libgd.so.1.8 is needed by plplot-5.0.3-4 > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |
From: M. F. <mfr...@se...> - 2001-10-01 20:36:55
|
What I did was rpm --nodeps plplot.rpm and then did the ln by hand. make cdemos worked and x01c made a png plot and opened an xwindow. Both had four test plots that looket OK. When I tried the -U option I got rpm -U gd-1.8.4-4.i386.rpm file /usr/lib/libgd.so.1.8.4 from install of gd-1.8.4-4 conflicts with file from package libgd1-1.8.4-3mdk Is there any way to see if the libgd.so.1.8.4 file is the same in both rpms? When I last tried installing plplot on Linux Mandrake 7.2 I forced some rpm. I also never got it to work. I kept getting linker errors. I suppose there aren't different versions of libgd.so.1.8.4 or there would be different numbers, right? So it should be safe to force the gd-1.8.4-4.i386.rpm package? Thanks. Martin On Mon, 1 Oct 2001, Alan W. Irwin wrote: > Those Mandrake 8.0 rpm's were made by a helpful user, and I don't have > access to Mandrake myself. Nevertheless, I believe I know a workaround for > you from my general rpm experience. > > The guy that built the Mandrake 8.0 rpm must have had libgd.so.1.8 on his > system so I don't quite understand how you have ended up with the later > version libgd.so.1.8.4 for your Mandrake 8.0. Perhaps you have an updated > version of the gd package and he was using the original Mandrake 8.0 > version? > > You could attempt to fix this by installing his exact Mandrake package of > gd. Was this what you were trying? If so, the proper way to do this is to > use rpm -F or -U (freshen or update) rather than rpm -i (install). See the > rpm man page. You may also have to use some additional parameter to allow > updating or freshening an existing newer package with an older package. > Again, see the rpm man page. > > If you just want to do something simpler, you could probably just force the > installation of plplot despite the slightly different libgd library version. > (look up "man rpm" to see how to force an install.) If you are lucky, > libgd.so.1.8.4 will just be a bug-fixed and feature enhanced version of > libgd.so.1.8 without any changes to the API that plplot uses. BTW, only the > png and jpeg drivers use the libgd API so any version mismatch problems for > that library will only show up if you use those particular drivers. > > BTW, my comments about forcing the PLplot rpm to install are all > theoretical. Lots of people apparently do such forcing (to get around such > problems as you have encountered), but I haven't done it myself. > > A final possibility is to build PLplot from either the source rpm or > tarball. (In both cases your compiler build will automatically match to the > exact library versions you have on your system.) Both possibilities are more > tedious than binary rpm installs, but you also learn more, and the results > never have library version mismatch troubles. > > Alan > > email: ir...@be... > phone: 250-727-2902 FAX: 250-721-7715 > snail-mail: > Dr. Alan W. Irwin > Department of Physics and Astronomy, > University of Victoria, P.O. Box 3055, > Victoria, British Columbia, Canada, V8W 3P6 > __________________________ > > On Mon, 1 Oct 2001, M. Frankford wrote: > > > I am trying to install plplot 5.0.3-4 > > on Linux Mandrake 8.0 and get the following > > > > [root@]# rpm -i plplot-5.0.3-4.i386.rpm > > error: failed dependencies: > > libgd.so.1.8 is needed by plplot-5.0.3-4 > > > > > > I then tried > > [root@]# rpm -i gd-1.8.1-4mdk.i586.rpm > > file /usr/lib/libgd.so.1 from install of gd-1.8.1-4mdk conflicts with file > > from package libgd1-1.8.4-3mdk > > > > I checked > > [root@]# ls /usr/lib/libgd.* > > /usr/lib/libgd.so.1@ /usr/lib/libgd.so.1.8.4* > > > > How do I resolve this(these) dependency problem(s)? > > > > Thanks. > > > > Martin > > > > > > _______________________________________________ > > Plplot-general mailing list > > Plp...@li... > > https://lists.sourceforge.net/lists/listinfo/plplot-general > > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |
From: Roberto H. <ro...@ad...> - 2001-10-01 23:52:40
|
You might not need this anymore, but just in case you do: | Is there any way to see if the libgd.so.1.8.4 | file is the same in both rpms? Try rpm -qpl <rpm-filename> That will list all the files in the rpm. - Roberto |