Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find lX11 library on Mac OS Sonoma 14.1 #4

Open
alex88ridolfi opened this issue Nov 4, 2023 · 1 comment
Open

Cannot find lX11 library on Mac OS Sonoma 14.1 #4

alex88ridolfi opened this issue Nov 4, 2023 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested wontfix This will not be worked on

Comments

@alex88ridolfi
Copy link

Hi @kazuakiyama ,

I would like to install pgplot on my Mac OS Sonoma 14.1 Intel mac through brew, and found your nice repository.

However when I run "brew install kazuakiyama/pgplot/pgplot", the compilation fails with the following error

ld: library not found for -lX11
collect2: error: ld returned 1 exit status
make: *** [libpgplot.dylib] Error 1

Of course I have XQuartz, as well as the Xcode tools + Command Line tools installed.

I am pasting below the whole output.

Do you have any suggestions on how let the linker find the library?
I am not even sure where the latter is located, to be honest.

Many thanks in advance for your possible help!

Cheers,
Alessandro

alex@bellatrix:~$ brew install kazuakiyama/pgplot/pgplot
==> Fetching kazuakiyama/pgplot/pgplot
==> Downloading https://raw.githubusercontent.com/kazuakiyama/hb-pgplot-patches/5eba73c0f42daba2d6404550244cc74280d10c4a/patch-makemake.diff
Already downloaded: /Users/alex/Library/Caches/Homebrew/downloads/01775b03c3ee5a079b98979e5c6014930d3824121e21855c83de1fcd4993d541--patch-makemake.diff
==> Downloading https://raw.githubusercontent.com/kazuakiyama/hb-pgplot-patches/5eba73c0f42daba2d6404550244cc74280d10c4a/patch-proccom.c.diff
Already downloaded: /Users/alex/Library/Caches/Homebrew/downloads/6d79a9025118c75397674be06e5a381c733b5bbe43c1b29f6ea03dd42729abea--patch-proccom.c.diff
==> Downloading https://raw.githubusercontent.com/kazuakiyama/hb-pgplot-patches/5eba73c0f42daba2d6404550244cc74280d10c4a/patch-grtermio.c.diff
Already downloaded: /Users/alex/Library/Caches/Homebrew/downloads/68c2c88263522b61caa2f8a5cb7ab32c0d1fbf435b0e2bb3eb0aae8de41848b8--patch-grtermio.c.diff
==> Downloading https://raw.githubusercontent.com/kazuakiyama/hb-pgplot-patches/5eba73c0f42daba2d6404550244cc74280d10c4a/patch-grfileio.c.diff
Already downloaded: /Users/alex/Library/Caches/Homebrew/downloads/a3c09625178d74017d9318cd50893c91bd2e678b63b145eb79d11ab494940f22--patch-grfileio.c.diff
==> Downloading ftp://ftp.astro.caltech.edu/pub/pgplot/pgplot522.tar.gz
Already downloaded: /Users/alex/Library/Caches/Homebrew/downloads/afb04afea3c466aa13e93eb0f33393758c846a8d70211280580b5b3689abd1c6--pgplot522.tar.gz
==> Installing pgplot from kazuakiyama/pgplot
==> Patching
==> Applying patch-makemake.diff
patching file makemake
==> Applying patch-proccom.c.diff
patching file 'pgdispd/proccom.c'
==> Applying patch-grtermio.c.diff
patching file 'sys/grtermio.c'
==> Applying patch-grfileio.c.diff
patching file 'sys/grfileio.c'
==> sw_vers -productVersion
==> ../makemake .. darwin
==> make
Last 15 lines from /Users/alex/Library/Logs/Homebrew/pgplot/03.make:
gfortran -c -ffixed-line-length-none -fallow-argument-mismatch ../sys/grtrml.f
gfortran -c -ffixed-line-length-none -fallow-argument-mismatch ../sys/grtter.f
clang -c -DPG_PPU -I. ../sys/gruser.c
ar ru libpgplot.a \
		`ls pgarro.o pgask.o  pgaxis.o pgaxlg.o pgband.o pgbbuf.o pgbeg.o  pgbin.o  pgbox.o  pgbox1.o pgcirc.o pgcl.o   pgclos.o pgcn01.o pgcnsc.o pgconb.o pgconf.o pgconl.o pgcons.o pgcont.o pgconx.o pgcp.o   pgctab.o pgcurs.o pgdraw.o pgebuf.o pgend.o  pgenv.o  pgeras.o pgerr1.o pgerrb.o pgerrx.o pgerry.o pgetxt.o pgfunt.o pgfunx.o pgfuny.o pggray.o pghi2d.o pghis1.o pghist.o pghtch.o pgiden.o pgimag.o pginit.o pglab.o  pglcur.o pgldev.o pglen.o  pgline.o pgmove.o pgmtxt.o pgncur.o pgnoto.o pgnpl.o  pgnumb.o pgolin.o pgopen.o pgpage.o pgpanl.o pgpap.o  pgpixl.o pgpnts.o pgpoly.o pgpt.o   pgpt1.o  pgptxt.o pgqah.o  pgqcf.o  pgqch.o  pgqci.o  pgqcir.o pgqclp.o pgqcol.o pgqcr.o  pgqcs.o  pgqdt.o  pgqfs.o  pgqhs.o  pgqid.o  pgqinf.o pgqitf.o pgqls.o  pgqlw.o  pgqndt.o pgqpos.o pgqtbg.o pgqtxt.o pgqvp.o  pgqvsz.o pgqwin.o pgrect.o pgrnd.o  pgrnge.o pgsah.o  pgsave.o pgscf.o  pgsch.o  pgsci.o  pgscir.o pgsclp.o pgscr.o  pgscrl.o pgscrn.o pgsfs.o  pgshls.o pgshs.o  pgsitf.o pgslct.o pgsls.o  pgslw.o  pgstbg.o pgsubp.o pgsvp.o  pgswin.o pgtbox.o pgtext.o pgtick.o pgtikl.o pgupdt.o pgvect.o pgvsiz.o pgvstd.o pgvw.o   pgwedg.o pgwnad.o \
		pgadvance.o pgbegin.o   pgcurse.o   pglabel.o   pgmtext.o   pgncurse.o  pgpaper.o   pgpoint.o   pgptext.o   pgvport.o   pgvsize.o   pgvstand.o  pgwindow.o  grarea.o grbpic.o grchsz.o grclip.o grclos.o grclpl.o grctoi.o grcurs.o grdot0.o grdot1.o grdtyp.o gresc.o  grepic.o gretxt.o grfa.o   grfao.o  grgfil.o grgray.o grimg0.o grimg1.o grimg2.o grimg3.o grinit.o gritoc.o grlen.o  grlin0.o grlin1.o grlin2.o grlin3.o grlina.o grmcur.o grmker.o grmova.o grmsg.o gropen.o grpage.o grpars.o grpixl.o grpocl.o grprom.o grpxpo.o grpxps.o grpxpx.o grpxre.o grqcap.o grqci.o  grqcol.o grqcr.o  grqdev.o grqdt.o  grqfnt.o grqls.o  grqlw.o  grqpos.o grqtxt.o grqtyp.o grquit.o grrec0.o grrect.o grsci.o  grscr.o  grscrl.o grsetc.o grsets.o grsfnt.o grsize.o grskpb.o grslct.o grsls.o  grslw.o  grsyds.o grsymk.o grsyxd.o grterm.o grtext.o grtoup.o grtrim.o grtrn0.o grtxy0.o grvct0.o grwarn.o grxhls.o grxrgb.o grexec.o \
		gidriv.o lxdriv.o nudriv.o pndriv.o psdriv.o xwdriv.o  grdate.o grfileio.o grflun.o grgcom.o grgenv.o grgetc.o grglun.o grgmem.o grgmsg.o grlgtr.o groptx.o grsy00.o grtermio.o grtrml.o grtter.o gruser.o | sort | uniq`
ar: creating archive libpgplot.a
/usr/bin/ranlib libpgplot.a
gfortran -dynamiclib -single_module  -lX11 -install_name libpgplot.dylib -o libpgplot.dylib `ls pgarro.o pgask.o  pgaxis.o pgaxlg.o pgband.o pgbbuf.o pgbeg.o  pgbin.o  pgbox.o  pgbox1.o pgcirc.o pgcl.o   pgclos.o pgcn01.o pgcnsc.o pgconb.o pgconf.o pgconl.o pgcons.o pgcont.o pgconx.o pgcp.o   pgctab.o pgcurs.o pgdraw.o pgebuf.o pgend.o  pgenv.o  pgeras.o pgerr1.o pgerrb.o pgerrx.o pgerry.o pgetxt.o pgfunt.o pgfunx.o pgfuny.o pggray.o pghi2d.o pghis1.o pghist.o pghtch.o pgiden.o pgimag.o pginit.o pglab.o  pglcur.o pgldev.o pglen.o  pgline.o pgmove.o pgmtxt.o pgncur.o pgnoto.o pgnpl.o  pgnumb.o pgolin.o pgopen.o pgpage.o pgpanl.o pgpap.o  pgpixl.o pgpnts.o pgpoly.o pgpt.o   pgpt1.o  pgptxt.o pgqah.o  pgqcf.o  pgqch.o  pgqci.o  pgqcir.o pgqclp.o pgqcol.o pgqcr.o  pgqcs.o  pgqdt.o  pgqfs.o  pgqhs.o  pgqid.o  pgqinf.o pgqitf.o pgqls.o  pgqlw.o  pgqndt.o pgqpos.o pgqtbg.o pgqtxt.o pgqvp.o  pgqvsz.o pgqwin.o pgrect.o pgrnd.o  pgrnge.o pgsah.o  pgsave.o pgscf.o  pgsch.o  pgsci.o  pgscir.o pgsclp.o pgscr.o  pgscrl.o pgscrn.o pgsfs.o  pgshls.o pgshs.o  pgsitf.o pgslct.o pgsls.o  pgslw.o  pgstbg.o pgsubp.o pgsvp.o  pgswin.o pgtbox.o pgtext.o pgtick.o pgtikl.o pgupdt.o pgvect.o pgvsiz.o pgvstd.o pgvw.o   pgwedg.o pgwnad.o \
	pgadvance.o pgbegin.o   pgcurse.o   pglabel.o   pgmtext.o   pgncurse.o  pgpaper.o   pgpoint.o   pgptext.o   pgvport.o   pgvsize.o   pgvstand.o  pgwindow.o  grarea.o grbpic.o grchsz.o grclip.o grclos.o grclpl.o grctoi.o grcurs.o grdot0.o grdot1.o grdtyp.o gresc.o  grepic.o gretxt.o grfa.o   grfao.o  grgfil.o grgray.o grimg0.o grimg1.o grimg2.o grimg3.o grinit.o gritoc.o grlen.o  grlin0.o grlin1.o grlin2.o grlin3.o grlina.o grmcur.o grmker.o grmova.o grmsg.o gropen.o grpage.o grpars.o grpixl.o grpocl.o grprom.o grpxpo.o grpxps.o grpxpx.o grpxre.o grqcap.o grqci.o  grqcol.o grqcr.o  grqdev.o grqdt.o  grqfnt.o grqls.o  grqlw.o  grqpos.o grqtxt.o grqtyp.o grquit.o grrec0.o grrect.o grsci.o  grscr.o  grscrl.o grsetc.o grsets.o grsfnt.o grsize.o grskpb.o grslct.o grsls.o  grslw.o  grsyds.o grsymk.o grsyxd.o grterm.o grtext.o grtoup.o grtrim.o grtrn0.o grtxy0.o grvct0.o grwarn.o grxhls.o grxrgb.o grexec.o \
	gidriv.o lxdriv.o nudriv.o pndriv.o psdriv.o xwdriv.o  grdate.o grfileio.o grflun.o grgcom.o grgenv.o grgetc.o grglun.o grgmem.o grgmsg.o grlgtr.o groptx.o grsy00.o grtermio.o grtrml.o grtter.o gruser.o | sort | uniq` -lpng -lX11
ld: library not found for -lX11
collect2: error: ld returned 1 exit status
make: *** [libpgplot.dylib] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/kazuakiyama/homebrew-pgplot/issues

These open issues may also help:
Segmentation fault during make of pgplot https://github.com/kazuakiyama/homebrew-pgplot/issues/3

@kazuakiyama
Copy link
Owner

Hello, very sorry that my response is extremely late. I was very busy in the last few months for other commitments (also I'm no longer an active user of pgplot).

I'm using Intel Mac with Sonoma 14.2.1 or earlier versions but I haven't seen this problem in my own local enviroment. Can you go to /usr/local/homebrew/lib and see if there is libX11.a or libX11.dylib? I want to make sure the library files installed by libx11 are there.

@kazuakiyama kazuakiyama self-assigned this Jan 24, 2024
@kazuakiyama kazuakiyama added the question Further information is requested label Jan 24, 2024
@kazuakiyama kazuakiyama added help wanted Extra attention is needed wontfix This will not be worked on labels Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants