diff options
-rw-r--r-- | doc/manual/2_Installation.md | 10 | ||||
-rw-r--r-- | src/Makefile | 7 |
2 files changed, 15 insertions, 2 deletions
diff --git a/doc/manual/2_Installation.md b/doc/manual/2_Installation.md index 397f227a..734d3cb5 100644 --- a/doc/manual/2_Installation.md +++ b/doc/manual/2_Installation.md @@ -55,7 +55,15 @@ since the versions of software installed vary widely from distribution to distribution. Because the Linux version of Textadept uses the version of GTK
installed on your system, an error like: `error while loading shared libraries:
<lib>: cannot open shared object file: No such file or directory` may occur when
-trying to run the program. If this happens, do not be alarmed, the solution is
+trying to run the program.
+
+The most common occurance of this error is for the `libpng12` library on 64-bit
+(x86\_64) Debian and Debian-based Linux distributions like Ubuntu because
+`libpng12` has not been replaced in favor of the newer `libpng14`. If you are
+experiencing this error, simply rename `textadept.lpng12` to `textadept`. The
+former has been compiled to use `libpng12`.
+
+If the above situation did not apply to you, do not be alarmed. The solution is
actually quite painless even though it requires recompiling Textadept. See the
[compiling](12_Compiling.html) page for more information.
diff --git a/src/Makefile b/src/Makefile index 255927e7..292422ed 100644 --- a/src/Makefile +++ b/src/Makefile @@ -66,6 +66,9 @@ GTKFLAGS = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) \ --cflags gtk+-2.0) GTKLIBS = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) \ --libs gtk+-2.0) +ifdef LIBPNG12 +GTKLIBS := $(shell sed -e 's/lpng14/lpng12/;' <<< "$(GTKLIBS)") +endif ifdef OSX GTKLIBS += -framework Carbon -framework Cocoa -ligemacintegration endif @@ -130,6 +133,7 @@ clean: TEXTADEPT32 = $(TEXTADEPT)32 TEXTADEPT64 = $(TEXTADEPT) +TEXTADEPT64LPNG12 = $(TEXTADEPT).lpng12 TEXTADEPTWIN32 = $(TEXTADEPT).exe TEXTADEPTMAC = $(TEXTADEPT).osx RELEASEDIR32 = textadept_$(value VERSION) @@ -144,7 +148,7 @@ PACKAGEMAC = ../releases/$(RELEASEDIRMAC).zip SRCPACKAGE = ../releases/$(RELEASEDIR32).src.zip release: ../$(TEXTADEPT) ../$(TEXTADEPT32) ../$(TEXTADEPTWIN32) \ - ../$(TEXTADEPTMAC) + ../$(TEXTADEPTMAC) ../$(TEXTADEPTLPNG12) sh -c 'cd ../scripts && ./update_doc' hg archive $(RELEASEDIR32) rm $(RELEASEDIR32)/.hg* @@ -155,6 +159,7 @@ release: ../$(TEXTADEPT) ../$(TEXTADEPT32) ../$(TEXTADEPTWIN32) \ # Linux x64_64 cp -r $(RELEASEDIR32) $(RELEASEDIR64) cp ../$(TEXTADEPT64) $(RELEASEDIR64) + cp ../$(TEXTADEPT64LPNG12) $(RELEASEDIR64) tar czf $(PACKAGE64) $(RELEASEDIR64) rm -r $(RELEASEDIR64) # Win32 |