[MacPorts] #35103: Cannot call X11() function in R
#35103: Cannot call X11() function in R ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- I obtained the following error when attempting to use X11()
X11() Error in X11() : X11 module cannot be loaded In addition: Warning message: In X11() : unable to load shared object '/opt/local/lib/R/modules/x86_64/R_X11.so': dlopen(/opt/local/lib/R/modules/x86_64/R_X11.so, 6): Symbol not found: _iconv Referenced from: /usr/lib/libcups.2.dylib Expected in: /opt/local/lib/libiconv.2.dylib in /usr/lib/libcups.2.dylib
-- Ticket URL: <https://trac.macports.org/ticket/35103> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * priority: High => Normal * owner: macports-tickets@… => kjell.konis@… Old description:
I obtained the following error when attempting to use X11()
X11() Error in X11() : X11 module cannot be loaded In addition: Warning message: In X11() : unable to load shared object '/opt/local/lib/R/modules/x86_64/R_X11.so': dlopen(/opt/local/lib/R/modules/x86_64/R_X11.so, 6): Symbol not found: _iconv Referenced from: /usr/lib/libcups.2.dylib Expected in: /opt/local/lib/libiconv.2.dylib in /usr/lib/libcups.2.dylib
New description: I obtained the following error when attempting to use X11() {{{
X11() Error in X11() : X11 module cannot be loaded In addition: Warning message: In X11() : unable to load shared object '/opt/local/lib/R/modules/x86_64/R_X11.so': dlopen(/opt/local/lib/R/modules/x86_64/R_X11.so, 6): Symbol not found: _iconv Referenced from: /usr/lib/libcups.2.dylib Expected in: /opt/local/lib/libiconv.2.dylib in /usr/lib/libcups.2.dylib }}}
-- Comment: Why would /usr/lib/libcups.2.dylib (or anything in /usr/lib) reference /opt/local/lib/libiconv.2.dylib (or anything in /opt/local/lib)? This might happen if you set LD_LIBRARY_PATH or DYLD_LIBRARY_PATH to include /opt/local/lib, or if you actually replaced Apple's /usr/lib/libcups.2.dylib with one built by MacPorts. If you've done either of those things, you should undo them. -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by chutsu@…):
"if you set LD_LIBRARY_PATH or DYLD_LIBRARY_PATH to include /opt/local/lib ....you should undo them"
That doesn't make sense though, its should be ok to load DYLD_LIBRARY_PATH to /opt/local/lib, else how do I define those libs when I need them? -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Setting LD_LIBRARY_PATH or DYLD_LIBRARY_PATH will cause problems like this; please do not set them. Why do you wish to set them? If anything, set only DYLD_FALLBACK_LIBRARY_PATH, but even that should not be necessary except in strange circumstances. -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by chutsu@…): I set the DYLD_LIBRARY_PATH so that when I compile programs the compiler knows where to look for the libraries, isn't that what its for? -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by cal@…): The compiler doesn't use `DYLD_LIBRARY_PATH`, the loader does. Ideally you wouldn't have to set `DYLD_LIBRARY_PATH`, because the binary you're trying to run knows where it's dependent libraries are. Does R not work without setting `DYLD_LIBRARY_PATH`? Why are you setting `DYLD_LIBRARY_PATH`? -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Instead, set LIBRARY_PATH to /opt/local/lib and/or add -L/opt/local/lib to LDFLAGS. -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by chutsu@…): Replying to [comment:5 cal@…]:
The compiler doesn't use `DYLD_LIBRARY_PATH`, the loader does. Ideally you wouldn't have to set `DYLD_LIBRARY_PATH`, because the binary you're trying to run knows where it's dependent libraries are.
Ok, perhaps I misunderstood.
Does R not work without setting `DYLD_LIBRARY_PATH`? Why are you setting `DYLD_LIBRARY_PATH`?
R does work without setting DYLD_LIBRARY_PATH. Thanks -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by cal@…): Replying to [comment:7 chutsu@…]:
R does work without setting DYLD_LIBRARY_PATH. Thanks
Do you consider this problem to be solved? Should I close this ticket? -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function ------------------------------+--------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: R ------------------------------+--------------------------------------------- Comment(by chutsu@…): Replying to [comment:8 cal@…]:
Replying to [comment:7 chutsu@…]:
R does work without setting DYLD_LIBRARY_PATH. Thanks
Do you consider this problem to be solved? Should I close this ticket?
Yes, thank you very much for the help :) -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35103: R: Cannot call X11() function -------------------------------+-------------------------------------------- Reporter: chutsu@… | Owner: kjell.konis@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: invalid | Keywords: Port: R | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/35103#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts