You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* OpenBSD: Available in the ports tree and also available as a binary package.
159
144
*`pkg_add -v micro`.
160
145
* NetBSD, macOS, Linux, Illumos, etc. with [pkgsrc](http://www.pkgsrc.org/)-current:
@@ -177,7 +162,7 @@ Without these tools installed, micro will use an internal clipboard for copy and
177
162
178
163
If your operating system does not have a binary release, but does run Go, you can build from source.
179
164
180
-
Make sure that you have Go version 1.16 or greater and Go modules are enabled.
165
+
Make sure that you have Go version 1.19 or greater and Go modules are enabled.
181
166
182
167
```
183
168
git clone https://github.com/zyedidia/micro
@@ -195,16 +180,20 @@ You can install directly with `go get` (`go get github.com/zyedidia/micro/cmd/mi
195
180
recommended because it doesn't build micro with version information (necessary for the plugin manager),
196
181
and doesn't disable debug mode.
197
182
198
-
### Fully static binary
183
+
### Fully static or dynamically linked binary
199
184
200
-
By default, the micro binary will dynamically link with core system libraries (this is generally
201
-
recommended for security and portability). However, there is a fully static prebuilt binary that
202
-
is provided for amd64 as `linux-static.tar.gz`, and to build a fully static binary from source, run
185
+
By default, the micro binary is linked statically to increase the portability of the prebuilt binaries.
186
+
This behavior can simply be overriden by providing `CGO_ENABLED=1` to the build target.
203
187
204
188
```
205
-
CGO_ENABLED=0 make build
189
+
CGO_ENABLED=1 make build
206
190
```
207
191
192
+
Afterwards the micro binary will dynamically link with the present core system libraries.
193
+
194
+
**Note for Mac:**
195
+
Native macOS builds are done with `CGO_ENABLED=1` forced set to support adding the "Information Property List" in the linker step.
196
+
208
197
### macOS terminal
209
198
210
199
If you are using macOS, you should consider using [iTerm2](http://iterm2.com/) instead of the default terminal (Terminal.app). The iTerm2 terminal has much better mouse support as well as better handling of key events. For best keybinding behavior, choose `xterm defaults` under `Preferences->Profiles->Keys->Presets...`, and select `Esc+` for `Left Option Key` in the same menu. The newest versions also support true color.
0 commit comments